Fixed the breadth first search...