This uses a really simple algorithm that I came up with myself. I used the site https://www.educative.io/edpresso/the-roman-to-integer-problem to tell me the numerals and their values but other than that I made this algorithm all by myself by searching up "number in roman numerals," plugging it into my machine to see if it worked, and if not then fix what was wrong.
I made three algorithms. two out of the three did not work sometimes. Now fixed!