define(['Backbone', 'socket'], function(Backbone, io){
  var SocketController = Backbone.View.extend({

    el: '#main-content',

    socketEvents: {
      'update estimations' : 'updateEstimations',
      'update players'     : 'updatePlayers',
      'closing'            : 'closeGame',
      'remove task'        : 'removeTask'
    },

    __initialize: function(){
      window.socket = io.connect();
      var view      = this;

      _.each(this.socketEvents, function(method, key){
        if(typeof view[method] === 'function'){
          socket.on(key, _.bind(view[method], view));
        }
      });

    },

    initialize: function(){
      this.message = this.options.router.playerMessage;

      this.message.on('change', this.showMessage, this);
      this.__initialize();
    },

    showMessage: function(){
      var message = this.message.get('message');
      this.$('.js-message').text(message);
    },

    updatePlayers: function(message, list){
      //Populate message
      this.message.set({ message: message });

      //Update player list
      var pls = _.map(list, function(v, k){return v;});
      this.options.router.players.update(pls);
    },

    updateEstimations: function(message, task, estimations){
      var router = this.options.router;
      var tasks  = router.project.taskList.collection;

      //Populate message
      this.message.set({ message: message });

      var taskModel = tasks.get(task);

      //Update task if selected
      if(taskModel){
        taskModel.save({estimated: estimations});
      }

    },

    closeGame: function(message, task, time){
      var router = this.options.router;
      var tasks  = router.project.taskList.collection;

      var taskModel = tasks.get(task);

      if(taskModel){
        var closed = taskModel.get('estimated') ? true : false;
        taskModel.set({closed: closed, time: time}).trigger('timer');
      }

    },

    removeTask: function(task){
      var router = this.options.router;
      var tasks  = router.project.taskList.collection;

      var taskModel = tasks.get(task);

      if(taskModel){
        var result = taskModel.get('result');
        taskModel.destroy({data: 'result='+result});
      }

    }

  });

  return SocketController;
});

@@ -1775,21 +1775,8 @@
     
- var closed =
  tas
@@ -1786,108 +1786,114 @@
 del.
-get('estimated') ? true : false;%0A        taskModel.set(%7Bclosed: closed, time: time%7D).trigger('timer'
+set(%7Btime: time%7D).trigger('timer');%0A      %7D%0A%0A      if(time === '0')%7B%0A        socket.emit('kill task', task
 );%0A 

Make card independent from rendered card