Cracking the code that relates brain and behavior in a simple animal