 
   robot.hearspond /cah db$/i, (res) ->
     res.reply JSON.stringify game.db
-    
+
+  robot.hear /^cah reset-game$/i, (res) ->
+    delete robot.brain.data.cah
+    global.game = new Game(robot)
+    start(robot, game)
+
   robot.hearspond /cah help$/i, (res) ->
     res.send helpSummary
 


Game = require('./game')

module.exports = (robot) ->

  game = new Game(robot)

  robot.error (err, res) ->
    if res?

    robot.logger.error JSON.stringify(robot.brain.data.cah, null, '\t')

  robot.brain.on "loaded", =>
    start(robot, game)
  
  # combo hear and respond, prepends ^ to hear regex
  # good for allowing same commands in room and DM
