implemented swapCards(int[], Deck) in player with tests.