Chris Kreider scored the game-winner in the third period as the New York Rangers came back to beat the Philadelphia Flyers 3-2.