 text.replace('[bridge, hazard ]', imgSprite('bridge_warning'));
            text = text.replace('[put_in, egress ]', imgSprite('inout'));
            text = text.replace('[put_in ]', imgSprite('inout'));
            text = text.replace('[egress ]', imgSprite('inout'));
            text = text.replace('[bridge ]', imgSprite('bridge'));
            text = text.replace('[dam ]', imgSprite('dam2'));
            text = text.replace('[dam, put_in ]', imgSprite('dam_inout'));
            text = text.replace('[]',