     rel_val = question_panel.find('.relation').val()
     property_val = question_panel.find('.property').val()
 
-    questions_list = state = states['player1'] ? p1_questions : p2_questions
+    questions_list = state == states['player1'] ? p1_questions : p2_questions
 
     if (questions_list[rel_val + property_val])
       finished(if state == states['player1'] then 'player2' else 'player1')

  p1_cards_obj = {}
  p2_cards_obj = {}

  p1_cards_jquery = []
  p2_cards_jquery = []

  p1_card_selector = undefined
  p2_card_selector = undefined


    sort_measures = []
    measures = {}
    for k,v of p2_cards_obj
      for n,val of v.attrs
        key = "#{n}|#{val}"
        measures[key] = (Number(measures[key])||0) + 1
    for key, val of measures
