fix a bug in the ai context implementation

The ai was not zeroing out its list of ratings used before it
computes them. Uninitialized values can be arbitrary at run time,
meaning that the ai could silently deviate from its supposed
algorithm.

Issue spotted by coverity.