some modifications on Dice.java