Haunted House: A text-based game for comparing the flexibility of mental models in humans and LLMs