private void AddVisitPoints(bool[,] maze, HashSet <Tuple <int, int> > points, int x, int y) { if (MazeHelper.IsPointInMaze(maze, x - 2, y) && MazeHelper.IsRoad(maze, x - 2, y) == false) { points.Add(new Tuple <int, int>(x - 2, y)); } if (MazeHelper.IsPointInMaze(maze, x + 2, y) && MazeHelper.IsRoad(maze, x + 2, y) == false) { points.Add(new Tuple <int, int>(x + 2, y)); } if (MazeHelper.IsPointInMaze(maze, x, y - 2) && MazeHelper.IsRoad(maze, x, y - 2) == false) { points.Add(new Tuple <int, int>(x, y - 2)); } if (MazeHelper.IsPointInMaze(maze, x, y + 2) && MazeHelper.IsRoad(maze, x, y + 2) == false) { points.Add(new Tuple <int, int>(x, y + 2)); } }