Changed distance measuring algorithm for some monsters.