public int GetPosition(int x, int y) { if (InMaze(x, y)) { return this.Maze[y, x]; } else { return CWall; } }