                 vicflag: ["img/vicflag1.png","img/vicflag2.png"]
             }
         }
-        @visualFrameRate = 17
-    @currentGame.finishGame() if @currentGame
+        root.visualFrameRate = 17
+    root.currentGame.finishGame() if root.currentGame
 
     gamediv = $(root.UIcont)
     tmp1 = document.getElementById("gameSelection")

    env = {
        key: game
        description : description
        visualMaster: @visualMaster
        frameRate: @visualFrameRate
        gamediv : gamediv
        player : root.getPlayer()
        codeland : this


root.startGame = (game) ->
    console.log("Starting #{game}")
    if not root.visualMaster
        root.visualMaster = {
            container: {
                width: 360,
                height: 360
