added pathfinding logic. doesnt want to find path though. needs fixing