SmartPlay: A Benchmark for LLMs as Intelligent Agents