Intelligence at the Edge of Chaos