fixed end of game