working bfs ishhhh