Solution to the labyrinth problem.