 
 
   proceed_question = (question)->
-    state = states['player1']
-
-
-    alert(question)
-
-    # change_turn()
+    is_first_player = state == states['player1']
+
+    obj_list = if is_first_player then p2_cards_obj else p1_cards_obj
+    selector_list = if is_first_player then p2_cards_jquery else p1_cards_jquery
+
+    negative = question[0] == '-'
+
+    [hkey, hvalue] = question.substring(1).split('|')
+
+    index = 0
+    for key, value of obj_list
+      predictable = value[hkey] != hvalue
+      if (negative) then  predictable = !predictable
+
+      if (predictable)
+        selector_list[index].addClass('back')
+        selector_list.splice(index, 1)
+        delete obj_list[key]
+      else
+        index++
+
+    if selector_list.length == 0
+      finished(if is_first_player then 'player1' else 'player2')
+    else
+      change_turn()
 
 
   change_turn = ->


  player2_positive_answer = ->
    console.log('Positive user answer')
    proceed_question(p1_question)
    false

  player2_negative_answer = ->

        p1_face_index = p1_cards_obj[Math.floor(Math.random() * 24)]
      else
        # send request to channel

      $.each(
        $(p2_card_selector),
        ->
          p2_cards_jquery.push($(@))
          key = $(@).attr('card_id')
          p2_cards_obj[key] = game_faces().faces[Number(key)]
      )
