   matchesLeft: 0
   currentMatch: null
   currentMatchIndex: 0
+  currentAutoWinnerMatches: []
   
   constructor: (options) ->
     @competitiveListOptions = options

      <button type="button" class="cancel_tournament_button" class="btn">Cancel</button> &nbsp;&nbsp;&nbsp;&nbsp;
      <button type="button" class="select_winner_button" class="btn btn-primary">Submit</button>
    </p>
  </form>
"""
      $('#bootstrap_modal').html(html)
      

      return true
    
  letWinnerWinMatchesAgainstCompetitorsWhichLoseAgainstLoser: (winnerId, loserId) ->
    @defeatedCompetitorsByCompetitor[loserId] ||= []

      @changeCompetitorsComparisonResult(winnerId, otherLoserId) unless match['winner_competitor'] == undefined
        
      @appointWinnerOfMatch(index, winnerId, otherLoserId, match['winner_competitor'] == undefined)
      window.matches[index]['auto_winner'] = true
      match = window.matches[index]
      
      competitorsWhichAreLoserOfLastMatch = jQuery.map(match['competitors'], (c) =>
        if c == @otherCompetitorOfMatch(@currentMatch, @currentMatch['winner_competitor'])
          return c
      )
      
      match['foot_note_competitor'] = loserId
      
      if competitorsWhichAreLoserOfLastMatch.length == 1
        match['auto_winner_reason'] = 'loser has been defeated because he loses against the loser <sup>[1]</sup> of last match'
      else
        match['auto_winner_reason'] = 'loser has been defeated because he loses against the loser <sup>[1]</sup> of last auto winner match'
        
      @currentAutoWinnerMatches.push match
      
  changeCompetitorsComparisonResult: (winnerId, loserId) ->
    @outmatchedCompetitorsByCompetitor[winnerId] ||= []
