[core] Change Deck so that it extends ArrayList<Card>