     if not player.word? and inventory.name?
         if c == inventory.name.remain[0]
             player.word = inventory.name
+    if player.word?
+        if player.word.full == player.word.remain
+            player.pair = inventory.get(player.word.full)
     player.word?.shot(c)
+    player.pair?.shot(c)
     if player.word?.remain == ''
         player.point += player.word.full.length
         inventory.add(player.word)
         pool_words.update()
         player.word.reset()
-        player.word.update()
         player.word = null
         player.lvl += 1
-        pool_words.autofill(player.lvl)
+        pool_words.autofill()
+    if player.pair?.remain == ''
+        player.pair = null


    draw: ->
        for word in @words
            $('#playground').append(word.show)


inventory = new class Inventory

        if not player.game?
            player.game = setInterval(draw, 12)
    if event.keyCode in [8, 27, 46] # backspace, escape, delete
        player.word?.reset()
        player.word = null
        player.pair?.reset()
        player.pair = null

$(document).keypress (event) ->
    c = String.fromCharCode(event.charCode)
