path finding working