School puzzle where we had to find all possible paths through a maze