       @owned = opts.owned || false
       Tetris.shapes[@id] = this
       @created() if isNewObj
-
+    
     draw: (c) ->
       drawBlock = (blockDef) =>
         x = (@x*Tetris.gridSize) + (blockDef[0]*Tetris.gridSize)

      gs.background('rgba(100, 100, 100, 1.0)')
      
  class Tetris.Shape
    constructor: (opts={}) ->
      isNewObj = opts.id == undefined
      @id = opts.id || makeGuid()

    blockSize: 18
    shapes: {}
    playerID: makeGuid()
    init: ->
      level = new Level()
      gs.addEntity(level)
      pusher.connection.bind 'connected', ->
        gs.addEntity(Tetris.Shape.randomShape(x:0, y:0, color: '#ff0', owned: true))
  }
  
  class Level
