Bfs considers units as obstacles