fixed problems - was misunderstanding of what mike's pathfinding returns.