Bad pathfinding (done).

We need another pathfinding algorithm. This one is too slow.