سلام دوست عزیز
تو جملهی “Caillou was having so much fun pretending that the leaf piles would be houses”، استفاده از “while” قبل از “pretending” ضروری نیست . اینجا با توجه به اینکه عبارت pretending that the leaf piles would be houses" یه عبارت present participle هستش و از حالت gerund استفاده شده، این خودش استمرار عمل رو نشون میده و دیگه نیازی به استفاده از while نیست.
درمورد گرامر participleها لینک زیر میتونه براتون مفید باشه.