Abstracted the createPlanet function

Now to create a planet call createPlanet(size)