To show how monkeys think about math and shapes, scientists had them play games — including some designed by kids.