while (!deck.isInOrder()) { print 'Iteration ' + i; deck.shuffle(); i++; }