Not sure about your stated problem, but I did find some things wrong in the code:

1.)

yourDeck = oppDeck;

Are you sure you want to do that?

I think that's making a shallow copy, to the...