The Physical Basis of Mind and Morals