small changes towards making the generics effects work. Also added the Dice class