fixed endgame timing, reverted