Wright masters Buffalo, leads PawSox to 5-3 triumph