Boston goes up on Buffalo in the third