You dig into the algorithm and what documentation the prior developer managed to write and everything looks like a combination of if statements and equations filled with magic numbers. While some of the magin numbers appear to point to some zoological papers on Panda mating routines, about 80% appeared to be something hand jammed. Whatever it was, it was most certainly not AI, or even ML. You do feel sorry for the previous developer. Though you’ve never met the engineer, you find personal comments sprinkled throughout the code such as “Why should the Pandas be happy if I’m not” and “I wish the US government would set ME up with a mate” What do you do?
Try another algorithm, clearly if this engineer couldn’t find love for himself, he certainly couldn’t for the world’s most asexual bear.
Add in some extra if conditions to stop the racist outcomes.