protected virtual void AddingMineCheck(Vector2Int newmine) { for (int j = 0; j < Operators.Length; j++) { Vector2Int current = newmine + Operators[j]; int closedIntValue; if (Closed.TryGetValue(current, out closedIntValue)) { if (closedIntValue > 0) { Closed[current]--; if ((closedIntValue - 1) <= 0) { WhenRemovingClosedNeighborCheck(current); } } else { throw new System.Exception("Invalid 'Closed' element found: " + current.ToString() + " " + Closed[current]); } } } }