Implemented the breadth first implementation of the code, so it is more similar to how it was done in the video