purpose of a jig machine during gold mining