Are you doing the math correctly? You always take the bigger number +/- the smaller number. Your answer will never be a negative, and if your answer is 10 or higher then you remove the first number in the integer. So 10 would be 0, 15 would be 5, so on.
