Spencer Horwitz was hit by a pitch with the bases loaded in the eighth inning to bring in the go-ahead run and give the Pirates a 3-2 win.