implement  a distance filter for monster generation