validate to know if the game is over