working on endgame