start working on breadth first search