Made card abstract class, improved main.