Create successorsGenerator and fix BFS (busca gulosa)