He bet the company in hopes of saving it