renamed MainLoop to LabyrinthSolver, updated the algorithm to correctly use the new pilot interfaces