change list of cards to 2D array cards