Wrote my code for connected components. Now I have to try it out and see if it will actually work