how does the ball mill machine work