It's the environment which is part of the engine of evolution. In the end, our brain is preprogrammed by our DNA. We do what is best, according to our DNA, to survive, generate offspring, and keep our DNA in the gene pool.