private static bool IsValidValue(int value) { return (value == -1 || // Empty. value == 0 || // Light (white). value == 1); // Dark (black). }