In the Hand.cards2hand function, the constructor should store the cards in the field instead of reference to the parameter.