Made bfs a function