add generate labyrinth logic