I will talk about standing waves in the future-- but these are kind of a balance between trying to get close to the nucleus and the proton and those positive charges, because the electron charges are attracted to them, while at the same time avoiding the other electron charges, or at least their mass distribution functions.