 get_cmd = (p, game_state, player_state) ->
   "coffee botResponder.coffee --bot '#{p.file}'"
 
-run_match = (p1, p2) ->
+run_match = (p1, p2, callback) ->
   p1.state = {}
   p2.state = {}
 

      say("results", "#{p2.name} vanquished #{p1.name}")
    else
      say("results", "nobody wins!")
  )

Models.Team.findAll()


  _.each(PARTICIPANTS, (p) ->
    p.strikes = 0
    p.score = 0

    cmd = get_cmd(p)
    p.proc = exec(cmd, {silent: true, async: true})

    Bot.register(p.name, (game_state, player_state, move) ->
      if (p.strikes < 3)
