They are not really intelligent, just following some random walk and flocking steering behaviors like these: https://natureofcode.com/book/chapter-6-autonomous-agents/. It's an example of "emergent behavior" which fits the jam's theme of "emergence".