Evolving the goal priorities of autonomous agents