private bool IsOutOfBounds(int x, int y) { return x < 0 || y < 0 || x >= this.Width || y >= this.Height; } }