 
 root.getGame = ->
     return getPlayer().currentGame
-
 
 root.getPlayer = ->
     @currentPlayer ?= root.load("CurrentPlayer")

root.load = (key) ->
    val = root.getString key
    return null unless val?
    result = jQuery.parseJSON (val)
    return result if result?
    throw new Error("Could not parse "+val)

root.store = (key,val) ->
    throw new Error("Value must exist") unless val ?
    root.setString(key, jQuery.toJSON(val) )

#Updates the player data
root.storeGameCompletionData = (key, data) ->

    }

root.updatePlayer = (callback) ->
    player = root.getPlayer()
    callback(player)
    root.store("CurrentPlayer", player)
    return

_sequence1 = {
    name : 'Code Sequence Puzzle #1'
