What was the primary goal of the American militia during the battles?