@Override
    public void execute(VGDLSprite sprite1, VGDLSprite sprite2, Game game) {

        if(sprite1.is_resource)
        {
            Resource r = (Resource) sprite1;
            applyScore=false;
            int numResources = sprite2.getAmountResource(r.resource_type);
            if(numResources + r.value <= game.getResourceLimit(r.resource_type))
            {
                applyScore=true;
                sprite2.modifyResource(r.resource_type, r.value);

                if(killResource)
                    //boolean variable set to false to indicate the sprite was not transformed
                    game.killSprite(sprite1, true);
            }

        }
    }