Updated cards.py to fix shuffle logic