using array list for cards