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



root.getGameDescriptions = ->
    @gameDescriptions ?= {
        sequence1 : _sequence1
        sequence2 : _sequence2
        sequence3 : _sequence3
        sequence4 : _sequence4
    }
root.getGameSequence = ->
    return @gameSequence if @gameSequence
    @gameSequence = []
    games = root.getGameDescriptions()
    addGame = (name) =>
        return if $.inArray(name, @gameSequence)!=-1
        doFirst = games[name].depends ?= []
        addGame g for g in doFirst
        @gameSequence.push name
        return
    addGame(g) for g,ignore of games
    return @gameSequence


root.canPlay = (game) ->


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