Structured World Representations in Maze-Solving Transformers