adds class Maze3D (friend to maze class)