Refactored and improved cards.c