Damn it, how will I ever get out of this labyrinth?
― Simón Bolívar
This mission in comparison to the previous one was an easy one. This was a PPC category (programming).
So we write our script based on what we see in the log and what we know from analyzing the application - the only thing that might be a bit more difficult is that the maze is traversed recursively so we need to have the same approach in our script. I've decided to use a stack to store the visited location and then when we go back pop it up from the stack.
And basically that's all!
After running the script we retrieve the map (just needed to manually set the map limits):