added barebones transition between numbers

I wans't able to come up with a sensible implementation using automatons.
Many things should be easy to do with this function, but sadly chaining of transitions is unpleasant.