Up till now, we can suppose, nervous systems solved the 'Now what do I do?' problem by a relatively simple balancing act between a strictly limited repertoire of actions - if not the famous four F's (fight, flee, feed, or mate), then a modest elaboration of them.
"Consciousness Explained". Book by Daniel Dennett, 1991.