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


    managerString  = description?.manager ?= 'GameManager'

    @currentGame = new window[managerString](env)

    @currentGame.startGame()

deepcopy = (src) -> $.extend(true, {},src)



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