Automatic Bug Detection in LLM-Powered Text-Based Games Using LLMs