Updated some logic. If within range, sheep are staying close to each other and running away from the dog.