The mind is a system for turning challenges into opportunities.