Thanks! I will let you in on a little secret (not really though since the code is public on GitHub): the mosquito flight pattern is simply the result of two random number generators.
It really says something about the power of the human mind to look for patterns when I personally wrote the code but still start thinking "the mosquito changed direction because I missed the slap!"