Now, a program which is objective driven and can infer from new inputs might be something else.
Just like humans try to maximize the stability of their structures via a reward system. (it got slighty complex, faulty at times, or the tradeoff between work vs reward is not always in favor of work because we do not control every variable, hence procrastination for example, or addiction which is not a conscious process but neuro-chemically induced).