updated rpg.rb

changed the if..else statements to a case and when. Hopefully this makes the code easier to read.