AI made every test pass, but the code was still wrong