The New York Islanders scored four goals in the second period as they defeated the Buffalo Sabres 5-2.