private void executePowerup(){
        switch (powerup.getPowerupType()){
            case LONGER_PADDLE:
                paddle.makeLong();
                if (paddle.getCurrentCoordinate().getX()+paddle.getLength()>windowWidth){
                    //If the paddle moves out of the window when it extends it gets moved back until it fits.
                    paddle.getCurrentCoordinate().moveCoord(windowWidth-(paddle.getCurrentCoordinate().getX()+paddle.getLength()), 0);
                }
                break;
            case SHORTER_PADDLE:
                paddle.makeShort();
                break;
            case EXTRA_LIFE:
                lives++;
                break;
            case EXTRA_POINTS:
                score += 1000;
                break;
            default:
                break;
        }
    }