Updated cards.c