Intention, agency, and criminal liability