more error catching in main function and galaxy init function, if object center too close to edge skip and move on to next object