private void ValidateKingNotInCheck(Team currentTeam) { if (IsKingInCheck(currentTeam, _board.Squares)) { throw new Exception("This move leaves your king in check!"); } }