Cleaned up
Just for fun: added a maze generator that operates on any set of connected 3d edges.