# Review Algorithmic Thinking by Building a Dice Game - Step 12

### Tell us what’s happening:

I have done what the step requires me to do but it’s still saying that I should set the total score and round element. I’ve already done this. Could someone tell me what I’m doing wrong?

``````<!-- file: index.html -->

``````
``````/* file: script.js */
// User Editable Region

const resetGame = () => {
// Reset dice values array to all zeros
diceValuesArr = [0, 0, 0, 0, 0];

// Reset game state variables
score = 0;
round = 1;
rolls = 0;

// Reset the displayed text for all dice elements
listOfAllDice.forEach((dice, index) => {
dice.textContent = diceValuesArr[index];
});
// Update the displayed total score
totalScore.textContent = score;

// Clear the score history
scoreHistory.innerHTML = "";

// Update the displayed number of rolls and current round
currentRoundRolls.textContent = rolls;
currentRound.textContent = round;

// Call the function to reset radio options
console.log(diceValuesArr)
};

if (rolls === 3) {
} else {
rolls++;
rollDice();
getHighestDuplicates(diceValuesArr);
}
});

isModalShowing = !isModalShowing;

if (isModalShowing) {
rulesBtn.textContent = "Hide rules";
rulesContainer.style.display = "block";
} else {
rulesBtn.textContent = "Show rules";
rulesContainer.style.display = "none";
}
});

let selectedValue;
let achieved;

for (const radioButton of scoreInputs) {
break;
}
}

if (selectedValue) {
rolls = 0;
round++;
if (round > 6) {
setTimeout(() => {
resetGame();
}, 500);

}
} else {
}});

// User Editable Region
``````
``````/* file: styles.css */

``````

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15`

### Challenge Information:

Review Algorithmic Thinking by Building a Dice Game - Step 12

did you call the function as they requested?

yes I did call the function after the alert.

move the resetGame() down so it is in the empty line given for it.
(after the timeout is done)

also check the console. You have some ReferenceErrors being reported.