public int this[int x, int y] { get { if (this.IsOutOfBounds(x, y)) { return 0; } return this.map[x, y]; } set { this.map[x, y] = value; } }