diff --git a/app.js b/app.js index c1bfb48..a3e1d24 100644 --- a/app.js +++ b/app.js @@ -245,7 +245,8 @@ document.addEventListener('DOMContentLoaded', () => { function gameOver() { if(current.some(index => squares[currentPosition + index].classList.contains('taken'))) { scoreDisplay.innerHTML = 'end' - clearInterval(timerId) + clearInterval(timerId); + document.removeEventListener("keyup",control); //stops to click on any key } }