refactor gameCreator functions. working version