public void NextTurn(Move move) { if (move == null || turnNum > 150) { return; } if (move.isPromotion && move.piece is Pawn) { ((Pawn)move.piece).Promote(this); } playersTurn.activePiece = null; playersTurn.canAttack = false; playersTurn = players[++turnNum % 2]; if (playersTurn.IsDefeated()) { winner = players[++turnNum % 2]; } }