bool ButtonCheck(Button b) { char[] buttonName = b.Name.ToCharArray(); int row = buttonName[1] - 48; int column = buttonName[3] - 48; bool checkResult = game.Check(row, column); if (checkResult) { b.BackColor = Color.Gray; } return(checkResult); }