moved non-unique removal to outside of checkOverlappingContours so that it can be run without worrying about removing important contours