Development of collective behavior in newborn artificial agents