         This is a wrapper for the functions which need to know the current row.
         It retrieves the current row and passes it to the function.
         ###
-        gameEditor = @
+        playerCodeEditor = @
         return ->
-            currentRow = gameEditor.editor.getCursorPosition().row
+            currentRow = playerCodeEditor.editor.getCursorPosition().row
             arguments[arguments.length++] = currentRow
-            func.apply gameEditor, arguments
+            func.apply playerCodeEditor, arguments
             return
 
     usesCurrentPosition: (func) ->

            usedAtStart: 1
        }
    }
    editor = new GameEditor levelOne, commands
    window.Editor = editor # For testing only, puts editor in global namespace.
    return

class GameEditor
    constructor: (@codeText, @commands) ->
        @editor = ace.edit "editor"
        @editSession = @editor.getSession()

        This is a wrapper for the functions which need to know the cursor's row and column
        It retrieves the current row and the current column and passes them to the function.
        ###
        playerCodeEditor = @
        return ->
            cursorPosition = playerCodeEditor.editor.getCursorPosition()
            arguments[arguments.length++] = cursorPosition.row
            arguments[arguments.length++] = cursorPosition.column
            func.apply playerCodeEditor, arguments
            return

    editsText: (func) ->
