refactoring to introduce a view for the dice.