Replacing hand-written code with generative AI degrades video game quality