endgame fixing