config: moved all global vars to within config return object, and updated references in game_logic