Fix the clearAllCards function properly