     $('#keep').html(inventory.show())
     $('#playground').empty()
     if player.word?
-        if player.word.full == shoot_name?.full
+        if player.word.full == inventory.name?.full
             player.word.update()
         else
             player.word.move()


stage_height = 300
stage_width = 1000

animate_id = null
shoot_name = null


player = new class Player

inventory = new class Inventory
    constructor: ->
        @words = []
        @name = null

    add: (word) ->
        if word == @name?.full
            if @words.length >= player.longest.length
                player.longest = @words
            @words = []
        else if word in @words
            @words.remove(word)
        else
            @words.push(word)
        if not @words.length
            @name = null
        else
            @name = new ShootingWord('@neizod')

    show: ->
        follow = if @name? then ' ' + @name.show.html() else ''
        (word for word in @words).join(' ') + follow


