how does the ball mill works