How Do Planets Get Their Orbits