What goes on inside an animal’s mind? Figuring out how they think and feel might just be the key to understanding our own place in the world.