Dice effect and polished some logic