Simple solution. You make the team with the illegal uniforms take them off and play topless. Use a marking pen to write their numbers on their chest and on their back.
Oh wait - this was a girl's game. Um, what color were their bras?
OK - I'll go take my meds now.