Check state of game if it's active

When the state of a tile changes only proceed and check the state of the
game if the game is active. All remaining tiles are pressed when the
game ends but there is no need to check the state of the game when that
happens.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>