2013 November Silver

I am completely lost as to why this works for every single test case, but fails (and even then off by only one adjective) for test case 10.
Code is here- it works by assigning each cow along with each of the missing cows an ID#, and then finds the ID of the cow that FJ wants. Finally, it translates that ID to a list of adjectives.

Can anyone see what could possibly be wrong with my code?

EDIT: ok solved lol, it was a problem with calculating the product variable thus leading to wrong cow IDs

In particular, you didn’t even include a link to the problem :confused:

Oh yeah, yeah. Sorry about that. Here’s the problem.