commits working bfs.rb file. Also reworks file structure