     else
       db.czar = db.activePlayers[czarIndex+1]
   return responseString + "\n\nNext round:\n" + game_state_string()
-  
+
 # generate string describing game state
 # czar, black card, number of submissions
 game_state_string = () ->


  robot.respond /cah white$/i, (msg) ->
    msg.send random_white_card()
  
  robot.respond /cah play$/i, (msg) ->
    name = sender(msg)
    add_player(name)
    robot.messageRoom name, "You are now an active CAH player."

  robot.respond /cah retire$/i, (msg) ->
    name = sender(msg)
    remove_player(name)
    robot.messageRoom name, "You are no longer a CAH player. Your score will be preserved should you decide to play again."
  
  robot.respond /cah czar$/i, (msg) ->
    if db.czar?
      msg.send db.czar

      for i in [0...answers.length] by 1
        cards = answers[i][1]
        responseString += "\n#{i}: #{generate_phrase(db.blackCard, cards)}"
      msg.reply responseString

  robot.respond /cah choose ([0-9]+)$/i, (msg) ->
    if sender(msg) != db.czar
