changed end of game