Apparently there is a rule about it being against the rules to use trickery to gain an advantage. I presume it includes things like this, tucking the ball under your jumper...that sort of thing. And if that rule exists then the ref called it spot on.