added card and deck functions