Greater_than_tens sort of working

So the greater_than_tens state sort of works for numbers up to 1000.
For numbers greater than that, it only works occasionally