Moved build planet to a method on aPlanet class
Moved all planet functions into class methods