Preliminary pathfinding. Buggy and trashy.