replacing matched gems with randoms ones