To change the
parameters or alter the rules whilst an event is still in progress.
Derived from any sport where goalposts are a feature, with the metaphorical extension to any situation where a sudden rule-change would benefit one party over another.