Changed endgame method