Ecological basis of planning by Glikson