Stacking and heaping cards