Refactored loop for roman numerals and added map