Man who lost job due to coronavirus wins $3.1m on lottery