1. Each block has two states, that is, the free state (the white square) and the occupied state (the color square).
2. It is free state, and when the block is clicked, the current state of the block will turn to the opposite state, that is, discoloration.
3. At the same time, the cube state adjacent to the box (without diagonal adjacent blocks) will also change. When all the boxes become occupied, the game will end.