One way to exercise a rat's brain is to give it puzzles that it needs to figure out.