Assuming your card object has instance variables defining its properties... When you click it, you'll want to look up its position in your PlayerHand array with the indexof() expression. With its position, you can get the values of that position to push to your new array, and then delete that index in the original array.