add game end processing