Get some oriental games, and then come back and speak with us about problem solving capabilities. If they had raccoon hands there wouldn't be a pen that would hold them. Have had more than one, hatched wild in the woods, decide that hitching a ride on a persons shoulder might be a good way to get food. They can be the wildest and at the same time the tamest of breeds, having been bred for centuries for both close human contact, and near feral rearing conditions.
I have used them as riding partners. Very easy to see how the early chicken domesticators arrived at the decision to perch a rooster on the mast of their raft. They have a language, and can tell you things. If you cover enough miles with a chicken looking out of the dash, you learn to hear when a light is turning red, or when a car is pulling out of a parking lot.
Those first chickens were game chickens, that being the reason chickens were domesticated. No need to domesticate a stringy 4 pound jungle bird that laid 20 eggs a year for eggs and meat when you lived in jungles teaming with fruit, amidst oceans teaming with fish, and every rock teaming with sea bird nests. They were ornaments, pets. lookouts, and gambling opportunities in the beginning. Their ability to display endearing qualities to their keepers, as well as their ability to best their opponents have been closely tied to their "smarts" for many centuries. Every thing since that time, related to chicken rearing for meat and egg production, has been a devolution in chicken intellect.