private bool IsInScope(int x, int y) { if (x < 0 || x >= Width) return false; if (y < 0 || y >= Height) return false; return scope.Contains(x, y); }