Dice class fixed