protected void updateBall() {
        ball.move();
        ball.bounceOffWalls(isEndless);
        ball.bounceOffPaddle(paddle1, player1);
        ball.scorePoint(player1, player2, isEndless);
        if (!isEndless) {
            ball.bounceOffPaddle(paddle2, player2);
        }
        ball.teleport(isTeleport, teleport);
    }