A clever tropical fish has flipped how biologists are thinking about memory, brains and visual recognition in the animal kingdom. Here’s how.