Created CardGame.py

The only working way I could find. The functions somehow managed to wipe the variable, this works nonetheless.