 actions = {
   start_game : ['start', 'restart', 'cancel']
 }
+
+valid_number = (possible_number)-> _.isNumber(possible_number) and !_.isNaN(possible_number)
 matches_any_word = (keywords, text)->
     words = text.split /[\n|,]/
     for key in keywords

  return no

ask_for_acres = (context)->
  if _.isNumber(context.game_responses.acres)
    return no

  track_strategy(context, 'ask_for_acres')
  acres = parseInt context.text.replace(/[\+|\s|\D|\,]/g, '')
  if _.isNumber(acres) and hammurabi.is_valid_acre(context)
    console.log("Setting acres: #{acres}")
    context.game_responses.acres = acres
    return no

  return context.send _.sample(game_questions.feed)

ask_for_seed = (context)->
  if valid_number(context.game_responses.seed)
    return no

  track_strategy(context, 'ask_for_seed')
  seed = parseInt context.text.replace(/[\+|\s|\-|\D|\,]/g, '')
  if valid_number(seed) and  hammurabi.is_valid_seed(context)
    console.log("Setting seed: #{seed}")
    context.game_responses.seed = seed
    return no
