public function copy() { $hand = new self(); foreach ($this->cards as $card) { $hand->addCard($card->copy()); } return $hand; }