Fixed quarry looping and block setting logic
tmp
Now terminates the quarry once it's done
Fixed quarry looping/digging logic
Code cleaning