finished cardpile class