added condition to add_card so it won't add non-Card objects