I was being dumbmb and used insertionSort instead of badInsertionSort at the end. Fixed an actual problem though.