add game end condition