       gs.addEntity(level)
       pusher.connection.bind 'connected', ->
         gs.addEntity(Tetris.Shape.randomShape(x:0, y:0, color: '#ff0', owned: true))
-  }
   
   class Level
     constructor: ->

    
    draw: (c) ->
      drawBlock = (blockDef) =>
        x = (@x*Tetris.gridSize) + (blockDef[0]*Tetris.gridSize)
        y = (@y*Tetris.gridSize) + (blockDef[1]*Tetris.gridSize)
        c.fillStyle = @color
        c.fillRect(x, y, Tetris.blockSize, Tetris.blockSize)
      definition = @shapeDefinition(this.rotation)


window.startTetris = (gs) ->
  
  Tetris =
    gridSize: 20
    blockSize: 18
    shapes: {}
