endgame method