Fix flaky card factory tests
To prevent that twice the same card name is generated we shuffle the list of card names and keep track of the index
To prevent that twice the same card name is generated we shuffle the list of card names and keep track of the index