feat(maze): maze logic