refactoring dice roll into a class of it's own