new problems and changes to mainBfs