basic path finding from all directions