The evolution and maintenance of cooperation in natural and artificial populations