   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)


  if window.location.href.indexOf("rift") != -1 ||  window.location.hash.indexOf("rift") != -1
    # Oculus Rift support TODO: allow in-game toggling
    effect = new oculus(game, { distortion: 0.2, separation: 0.5 })
    document.getElementById("logo").style.visibility = "hidden"

  container = opts.container || document.body

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

  createFlyForGame = createFly game
  target = game.controls.target()
  game.mode = GAME_MODE_SURVIVAL
  game.flyer = createFlyForGame target
  game.flyer.enabled = false

  reach = createReach(game)
