const countScore = (answers, livesNumber) => {
let score = 0;
for (let i = 0; i < answers.length; i++) {
const current = answers[i];
if (current.value) {
score += 100;
if (current.time < NUM) {
score += 50;
} else if (current.time > 20) {
score -= 50;
}
}
}
score += livesNumber * 50;
return score;
};