Add BFS functionality + remove useless console log