The magic labyrinth