refactor dice code, add dice_l command