[dice.rb] Changed modifier behavior

Adjusted the mod to be added only to the final sum of the rolls instead of each roll. Additionally, made some small changes to try to make the code more idiomatic.