Added the dice class and moved the d(int) method to it.
Added tests for class Dice.