         ###
             Event Function (passed in as a callback or bound to a button press)
 
-            Resets the code editor and the visual.
+            Resets the code editor and the game.
         ###
         @environment.stats.resetCount += 1
         @storeStats()
 
+        @resetGame()
+        @resetCode()
+        return
+
+    resetGame: =>
+        ###
+            Event Function (passed in as a callback or bound to a button press)
+
+            Resets the game.
+        ###
+        @stopStudentCode()
+        @startGame false
+        return
+
+    resetCode: =>
+        ###
+            Internal Function (used only by the code in this file)
+
+            Resets the student's code.
+        ###
         @codeEditor.resetEditor()
-        @startGame false
         return
 
     runStudentCode: =>

            @environment.codeland.doppioAPI.abort @showRun
        else
            @showRun()
        @startGame true
        return false

    showRun: =>

            Sets up the event listeners the game manager responds to.
        ###
        jQuery('#compileAndRun').click @runStudentCode
        jQuery('#stopRun').click @resetGame
        jQuery('#resetState').click @reset
        jQuery('#help').click @helpTips
        @codeEditor.onStudentCodeChangeListener @resetGame.bind @
        @codeEditor.onCommandValidation @commandsValid
        return

