Fixed end of the game