moved card methods to card_data.py, fixed some dependency bugs