implement dice_game, continue with refactoring