Breadth first efficient solver fixed