Investigating strategies for intraspecies cooperation using agent-based modeling and genetic algorithms