how a brick making machine works