bfs find right amount of components
delete files