modularize gameAppSetup function into testHelperFunctions.js