Bruins rally to win a thriller