made the bubble sort actually work by adding a while loop and stuff. It was halting before finishing the sort.