   game.flyer = makeFly target
   game.flyer.enabled = false
 
-  game.reach = reach(game)
-  game.mine = mine(game, {instaMine: false})
+  reach = createReach(game)
+  mine = createMine(game, {instaMine: false, reach: reach})
 
   console.log "configuring highlight "
   # highlight blocks when you look at them, hold <Ctrl> for block placement

      if game.mode == GAME_MODE_SURVIVAL
        game.mode = GAME_MODE_CREATIVE
        game.flyer.enabled = true
        game.mine.instaMine = true
        console.log("creative mode")
      else
        game.mode = GAME_MODE_SURVIVAL
        if game.flyer.flying
          game.flyer.stopFlying()
        game.flyer.enabled = false
        game.mine.instaMine = false
        console.log("survival mode")

  # cancel context-menu on right-click

extend = require 'extend'
fly = require 'voxel-fly'
walk = require 'voxel-walk'
createMine = require 'voxel-mine'
createReach = require 'voxel-reach'
debris = require 'voxel-debris'
createDebug = require 'voxel-debug'

