A Cognitive Theory of Pretence