use bfs to dodge bomb