principle of working of ore gold mining machines