An Analysis of Self-Deception