Copyright © University of Cambridge. All rights reserved.
You could try to list all the possible routes and calculate the distance the torch would need to travel for each.