added clunky method to check whether a number is bouncy