End game

Now the game ends when all the squares are the same color.