Code now actually runs and makes a bit more sense. A quick look online,
and recursion looks to be the best solution. I was thinking building up to
the value, rather than breaking down. But this is better.