 
 
 root.getPlayer = ->
-    @currentPlayer ?= root.load("CurrentPlayer")
-    @currentPlayer ?= {
+    root.currentPlayer ?= root.load("CurrentPlayer")
+    root.currentPlayer ?= {
         id : +(new Date())
         currentGame : ''
         first : ''

    return root.gameDescriptions

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) ->

                vicflag: ["img/vicflag1.png","img/vicflag2.png"]
            }
        }
        root.visualFrameRate = 17
    root.currentGame.finishGame() if root.currentGame

    gamediv = $(root.UIcont)
    tmp1 = document.getElementById("gameSelection")
