Code for the Battle Card generator.