modified content of planetsim.c so we have an array of planets