change Fire algorithm to breadth first