The brain as agent