Simple robots form a chain gang to solve complex problems