Make cards a class rather than a tuple