modified Card, Pile, and NumSort
modified and commented NumSort