Assessing LLM code generation quality through path planning tasks