end of game fixed