Calculating score

Improved algorithm for calculating the score of the selected dice