Code to generate mazes apepars to work now. Lots of debug output.