bugfix for endgame: remove infinite loop