         @show.empty()
              .append($('<u>').html(@done()))
              .append($('<b>').html(@remain))
-
-    # TODO player die when word reach left side
+        @left <= 0
 
 
 pool_words.push(new ShootingWord('kick neizod'))


pool_words = []
shoot_word = null

class ShootingWord
    constructor: (@full) ->

    $('#playground').empty()
    if shoot_word?
        shoot_word.move()
        player_die = true if shoot_word.update()
        $('#playground').append(shoot_word.show)
    for word in pool_words
        word.move()
        player_die = true if word.update()
        $('#playground').append(word.show)
    if player_die
        $('#playground').css('background-color', 'darkred')


$(document).ready ->
