worked on pathfinding

tried a new aproach - doesn't actually work though