Finish endgame logic