how the ore gold mining companies works