(중략)
}
case 'down': {
(중략)
if (prevData === data[3 - i][j]) {
const score = parseInt($score.textContent);
$score.textContent = score + currentRow.at(-1) * 2;
currentRow[currentRow.length - 1] *= -2;
(중략)
}