Consider using Array.filter method to identify cards and a removeCard method that removes the card from the hand.