Exploring Major Transitions in the Evolution of Biological Cognition With Artificial Neural Networks