Added Maze class to reduce level complexity