       obj.destroy()
     photon.checkWorldBounds = true
     photon.events.onOutOfBounds.add (obj)=>
+      obj.kill()
       @photons.remove(obj)
 
     @photons.add(photon)

    @game.state.start('splash')

  _init:->
    @_addPhoton(64, 400, 225, 100, 0, 0xff0000)
    @_addPhoton(64, 400, 225, -100, 0, 0x00ff00)
    @_addPhoton(64, 400, 225, 0, 100, 0xff00ff)
    @_addPhoton(64, 400, 225, 0, -100, 0x00ffff)

  _split:=>
    return if @photons.countLiving() > 512

    @square.height = 450
    @square.anchor.x = 0.5
    @square.anchor.y = 0.5
    @square.alpha = 0.02

    @photons = @game.add.group()

