Maze / pattern generator