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

      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) + 1 
        y = (@y*Tetris.gridSize) + (blockDef[1]*Tetris.gridSize) + 1
        c.fillStyle = @color
        c.fillRect(x, y, Tetris.blockSize, Tetris.blockSize)
      definition = @shapeDefinition(this.rotation)
