changed deck generation to take char ** rather than return one