AbstractCard constructor and template pattern adjusted.