How does Melanion win the race against Atalanta?

He takes a potion given to him by Aphrodite.
He distracts her by tossing golden apples by the path.
Atalanta falls in love with him and throws the race.
Atalanta trips over a root that Melanion causes to appear magically.