Generalizes card printing by removing magic numbers