Implemented card stack data type