Old version without main which is simlar to new MazeFrame