Added more sophisticated behavior for hungry AI.