Finished breadth first search