-window.pusher = new Pusher(pusher_key)
-window.channel = pusher.subscribe(gameID)
+if window.gameID
+  window.pusher = new Pusher(pusher_key)
+  window.channel = pusher.subscribe(gameID)
 
 window.makeGuid = ->
     S4 = () -> (((1+Math.random())*0x10000)|0).toString(16).substring(1)


    c.beginPath()
    count = (Tetris.viewport.x)
    console.log(count)

    for num in [0..Tetris.viewport.y]
      c.moveTo(0, Tetris.gridSize * num)

      @gs.addEntity(@blocks)
      @map = new Map(0, Tetris.viewport.y*Tetris.gridSize+1, @blocks.blocks, @shapes)
      @gs.addEntity(@map)
      bindPusherEvents()
      bindPageGameEvents()
      channel.trigger 'ready'
      @gs.launch()

