public static ArrayList<Integer> splitIntoDigits(int number) {
		ArrayList <Integer> digitsInNumber = new ArrayList <Integer>();
		do {
		    digitsInNumber.add(0, number % 10);
			number /= 10;
			if (number / 10 == 0 & number % 10 != 0)
				digitsInNumber.add(0, number % 10);
		} while (number / 10 != 0);
		
		return digitsInNumber;
	}