   --cięcie--
   let leftScore = 0;
   let rightScore = 0;
   let gameOver = false;

   document.addEventListener("mousemove", e => {
   --cięcie--

   function checkCollision() {
   --cięcie--
     if (ball.right > width) {
       leftScore++;
       initBall();
     }
     if (leftScore > 9 || rightScore > 9) {
       gameOver = true;
     }
     if (ball.top < 0 || ball.bottom > height) {
       ySpeed = -ySpeed;
     }
   }
   --cięcie--
