Added end of game actions.