Fixed nextPlayerInTurn problem