Emergent World Models and Latent Variable Estimation in Chess-Playing Language Models