Add features to maze, refactor code.
Refactor Mesh.