Exercising can help improve our cognitive abilities as well as our mental health.