adds end of game