changed rollDice function