Attempt to implement pathfinding system. Highly experimental!