public void catchPowerUp(int type) {
        switch (type) {
            case 1:
                length += FRAME_HEIGHT / 10;
                break;
            case 2:
                if (length > FRAME_HEIGHT / 10 + FRAME_HEIGHT / 50) {
                    length -= FRAME_HEIGHT / 10;
                }
                break;
        }
    }