Update dice.py

functioning functions