Boston Red Sox defeat Pittsburgh Pirates, 6-5