On Halloween night, a lot of monsters from the underworld appeared in a small town. You in the game Halloween Mania will have to destroy them all. You managed to drive all the monsters into a magical trap. It is a playing field inside divided into an equal number of cells. All of them will be filled with the heads of various monsters. You will have to carefully examine everything and find the heads of identical monsters that are next to each other. Of these, by moving one of the heads, you will have to form one row of at least three objects. Thus, you will remove a group of these goals from the playing field and you will be given points for this in the Halloween Mania game.