major bug fix in endTurnV2