public void resize() {
        if (!isLeftPaddle) {
            x = CardsPanel.FRAME_WIDTH - 30;
        }
        length = FRAME_HEIGHT / 5;
        v = FRAME_HEIGHT / 25;
        duration = 0;

        if (y + length > FRAME_HEIGHT) {
            y = FRAME_HEIGHT - length;
        }

    }