Added two different forms of pathfinding