   game.appendTo container
   return game if game.notCapable()
 
-  createPlayer = player game
+  createPlayerForGame = createPlayer game
 
   # create the player from a minecraft skin file and tell the
   # game to use it as the main player
-  avatar = createPlayer opts.playerSkin || 'player.png'
+  avatar = createPlayerForGame opts.playerSkin || 'player.png'
   avatar.pov('first');
   avatar.possess()
   home(avatar)

  debug = createDebug(game)
  debug.axis([0, 0, 0], 10)

  makeFly = fly game
  target = game.controls.target()
  game.mode = GAME_MODE_SURVIVAL
  game.flyer = makeFly target
  game.flyer.enabled = false

  reach = createReach(game)


  console.log "configuring highlight "
  # highlight blocks when you look at them, hold <Ctrl> for block placement
  highlight = createHighlight game, { color:  0xff0000 }

  # toggle between first and third person 
  window.addEventListener 'keydown', (ev) ->
