created core classes for deck and cards