Fixed king promotion at the end of the turn sometimes not preventing the game end based on a race condition, removed an ugly hack