GOT BREADTH_SEARCH ALGORITHM TO WORK