Fixes #42.

I can't just delete entries from the hit_matrix hash while I'm
iterating through it. Now I make a new hash and add to it, then repoint
the hit_matrix reference to it afterwards.