private bool MoveFromInput(string input) { int row = 0; int col = 0; // Make sure the input meets the length requirement before parsing if (input.Length == 2) { row = (int)(Char.ToUpper(input[0])) - 65; col = (int)Char.GetNumericValue(input[1]) - 1; if (row >= 0 && row < 8 && col >= 0 && col < 8) { return(board.GetCellAt(row, col).PlacePiece(turn)); } } return(false); }