added cards to cards.rb, and made adjustments to type checking