     return
 
 root.stringifyConfigArrays = (gameData) ->
+    ###
+        Internal Function (used only by the code in this file)
+
+        Converts gameData config information from arrays into newline
+        deliminated strings.
+
+        @param gameData
+            The game's data.
+    ###
     gameData.game.map = gameData.game.map.join '\n' if gameData?.game.map?.join?
     gameData.code.prefix = gameData.code.prefix.join '\n' if gameData?.code.prefix.join?
     if gameData.code.prefix.charAt(gameData.code.prefix.length - 1) != '\n'

                return
            }
    catch exception
        fail= true
        console.log "#{theurl}: #{exception} #{exception.message} #{exception.stack}"
    if(fail)
        throw "Configuration Exception reading #{theurl}"
    return

root.loadJSONConfigs = () ->
    if not root.gameDescriptions?
        root.gameDescriptions = {}
    configFail = false

    return

root.initializeDoppio = ->
    ###
        Internal Function (used only by the code in this file)

        Constructs the doppioAPI and tells it to preload the required code.
    ###
    root.doppioReady = false
    root.doppioPreloaded = false
    progress = $('#progress')
    count = 0;
    last_display = ""
    progress_cb = (ignore_incorrect_fraction) ->
        ###
            Handles the progress bar and displaying what part of Doppio is loading
            to the user.
        ###
        count = count + 1
        display = Math.floor((100*count) / 391)
        if (display == 100)
            display = "Starting Java Virtual Machine..."
        else display = "Opening " + display
        if (last_display != display)
            last_display = display
            progress.html display
        return
    preload_cb = ->
        ###
            Once doppio has intialized, this function is called to tell
            doppio to pre-compile the functions used by the games.
        ###
        root.doppioAPI.preload root.beanshellPreload, root.wrapperCompiled_cb
        root.doppioPreloaded = true
        return
    root.doppioAPI = new DoppioApi null, preload_cb, progress_cb
    return

root.wrapperCompiled_cb = =>
    ###
        Internal Function (used only by the code in this file)

        Once doppio has finished pre-compiling, this draws the game-map
        and, should something be waiting on doppio to compile and has
        presented codeland with a callback, runs that callback.

        Note: In the current implementation, only the latest thing to
        assign a callback to codeland is run.
    ###
    root.doppioReady = true
    console.log 'Finished Preloading Doppio'
    player = root.getPlayer()
