What is the relationship between goals, intelligence, agency and optimization?