add dice unit test
some refactoring of dice
add tile test
Further refactoring checked in for ben to carry on tonight