endgame handling