Fruit Mahjong

The playing field is divided into squares filled with fruits, berries and vegetables. Find pairs of identical fruits and get rid of them. But there is one rule: only those pictures that can be connected by straight lines are removed so that no more than three segments are obtained. They can only go horizontally or vertically. When the playing field becomes empty, you win and can move on to the next level.