Using a map as a state machine to traverse the roman numbers.