In the Christmas holidays lots of garlands are lit, but everything comes to an end and the lights have to be removed. You will have to clean up the Xmas lights puzzles, and so that it does not seem like a boring routine work, we decided to turn it into a puzzle. The task is to clear the field of colored balls, but their removal must take place according to certain rules. You can remove the entire row or column, bordered around the edges by the same color elements, but remember that you should always have a pair. If one ball hangs on the field, you lose.