A library for card battling games