Jack Eichel supplied some overtime magic, allowing the United States to win its group and avoid the home team at the world championships.
Eichel, expected to be drafted second overall by the Sabres in June, scored with 28 seconds left in OT to give the Americans a 5-4 victory over Slovakia. The 18-year-old center used his body to keep the puck away from defenders, then put a laser into the top corner for the winner.
Eichel also assisted on a power-play goal by Seth Jones, setting up the Nashville defenseman with a cross-ice pass.
Eichel has two goals and six points in the last five games for the United States (6-1).
The Americans clinched Group B with the victory. They will play Switzerland in the quarterfinals on Thursday. If the U.S. team had lost, it would have met Czech Republic in Prague.
Canada won Group A, setting up a possible gold-medal game between the North American neighbors and hockey rivals.