cbfs() is doing a bfs search, because why not?