Values and Intentions: A Study in Value-theory and Philosophy of Mind