how does a mining jig work