Removed some strict build flags to get project building for mac
Refactored logic from main into world class.