fixing breadth first bubble searching