breadth first search working, similar efficiency, plan to go into master