"Maze" algorithm generator