Planetoid gravity working again!

Files still need to be cleaned up a little, but it's working.