public static int GetCellNum(string CellChars) { int NumChar1 = Hash.IndexOf(CellChars[0]) * Hash.Length; int NumChar2 = Hash.IndexOf(CellChars[1]); return NumChar1 + NumChar2; }