changed fromCard to ICard in deck