card game implemented in python