New (unfinished) BFS

If check problems in BFS