 
 pool_words = []
 shoot_word = null
+player_die = false
 
 class ShootingWord
     constructor: (@full) ->

        @show.empty()
             .append($('<u>').html(@done()))
             .append($('<b>').html(@remain))

    # TODO player die when word reach left side


pool_words.push(new ShootingWord('kick neizod'))

    $('#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 ->
