working dynamic pathfinding but without backtracking