Did the referee do the right thing?