Refactoring it - inital breadth first search
Merging ...