added dice_utils in dice.cpp and improved rules_ro library and tests