Pushed more code out of main(), worked on moving to passing pointers rather than using global variables.
Pushed more code out of main(), worked on moving to passing pointers rather than using global variables.

spacecamper/miny,spacecamper/miny