public bool IfBelongsToActivePlayer(string i_MoveString) { string[] sourceAndDest = i_MoveString.Split('>'); int comparisonValue; bool isPieceFound = false; foreach (Piece PlayerPiece in m_ActivePlayerReference.PlayerPieces) { comparisonValue = string.Compare(sourceAndDest[Constants.MOVE_SOURCE], PlayerPiece.convertCoordinatesToBoardSlotIdentifier()); if (comparisonValue == Constants.MATCH) { isPieceFound = true; } } return(isPieceFound); }