     'disabled' unless currentPlayer()?
 
   challenge: ->
-    console.log 'challenge helper'
     challenges = Challenges.find $or: [
       { challengerId: currentPlayerId() }
     , { challengeeId: currentPlayerId() }

# methods

checkChallenges = (challenges) ->
  console.log "checkChallenges"
  # check for results
  challenges.forEach (c) ->
    console.log "check result: #{c}"
    unless c.challengerId is currentPlayerId()
      console.log 'continue'
      return true

    challengerGame = Games.findOne c.challengerGameId
    challengeeGame = Games.findOne c.challengeeGameId


      Challenges.update currentChallenge()._id, $set: { notified: true }

      return false

  challenges.rewind()

  # check for challenges
  challenges.forEach (c) ->
    return true unless c.challengeeId is currentPlayerId()

    challengerGame = Games.findOne c.challengerGameId
    challengeeGame = Games.findOne c.challengeeGameId
