Shuffle donuts until no match at the beginning

Shuffle donuts until no match at the beginning