If the game seems hard, you're right. It has been shown to be NP-complete. The number in the bottom half of the square tells you how many sides of the square are currently active. The puzzle is solved ...