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

actions = {
  start_game : ['start', 'restart', 'cancel']
}
matches_any_word = (keywords, text)->
    words = text.split /[\n|,]/
    for key in keywords

  return no

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

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