Add a map mode, which displays the path through the maze as a 3D object. The command to switch into or out of map mode is m.