Fixed a problem with the fuzzy logic (pun unintended, but still funny ;))