Exploring adaptive agency II: simulating the evolution of associative learning