Added preliminary pathfinding.