Knows if the game is over