     Games.findOne(currentChallenge().challengeeGameId).state is 'declined'
 
   result: ->
-    highscore = null
-
     if currentPlayerRole() is 'challenger'
       highscore = Highscores.findOne
         gameId: currentChallenge().challengeeGameId

  winner: ->
    winner = winnerRole()
    return unless winner
    if winner is 'tie'
      "Wow, der ble uafgjort!"
    else if winner is currentPlayerRole()


# methods

currentPlayerRole = ->
  if currentPlayerId() is currentChallenge().challengerId
    'challenger'
