Implemented deck generation