Now using bfs