   $pokemon: (player, slot) =>
     if arguments.length == 1
       pokemon = player
-      for team, i in @model.teams
+      @model.get('teams').forEach (team, i) ->
         index = team.indexOf(pokemon)
         if index != -1
           player = i
           slot = index
-          break
+          return
     @$(".pokemon[data-team='#{player}'][data-slot='#{slot}']")
 
   $spriteContainer: (player, slot) =>

    @lastMove = null
    @skip     = null
    @renderChat()
    @listenTo(@model, 'change:status', @handleStatus)
    @listenTo(@model, 'change:finished', @handleEnd)
    @battleStartTime = $.now()
    @timers = []

      log.push $this.text()
      log.push ""  if isHeader
    log = [ log.join('\n') ]
    fileName = (@model.get('teams').map((team) -> team.get('owner'))).join(" vs ")
    fileName += ".txt"
    blob = new Blob(log, type: "text/plain;charset=utf-8", endings: "native")
    saveAs(blob, fileName)
