David Pastrnak finished with a goal and an assist while Jonas Korpisalo made 31 saves to elevate the Boston Bruins to a 3-2 victory over the Pittsburgh Penguins.