Simulation of Collective Intelligence of a Multi-Species Artificial Ecosystem Based on Energy Flow