debug the pathfinding demo