pathfinding implemented by some dubious methods...hehe. need to implement it in game now.