Card back to class

Decided on data templates so removed the card xml and made it a class.