//use AddValueToMainMatrix depending on which turn public void Turn(Alpha sym, int num) { if (color == userColor) { if (modMatObj.AddValueToMainMatrix(sym, num, userColor)) { color = (Color)(((int)color + 1) % 2); } } if (color != userColor) { AiTurn(); color = (Color)(((int)color + 1) % 2); } }