edit the cards array