       @color = opts.color || '#000'
       @fixed = opts.fixed || false
       shapes[@id] = this
-      @type = null
       @created() if isNewObj
 
     draw: (c) ->

        3: [[-1,1],[0,1],[1,1],[2,1]]
      }[rotation]
  
    
  level = new Level()
  gs.addEntity(level)
  setTimeout (->
    # gs.addEntity(new ZShape(x:1, y:1, color: '#f00', fixed: true))
    # gs.addEntity(new SShape(x:5, y:5, color: '#0f0', fixed: false))
    gs.addEntity(new CubeShape(x:2, y:7, color: '#00f', fixed: false))
    # gs.addEntity(new TShape(x:8, y:3, color: '#000', fixed: true))
    ), 1000

  blockSize = gridSize - 2
  shapes = {}
  playerID = makeGuid()
  
  class Level
    constructor: ->
