added card_id to flagged_decks and set them appropriately