update dynamics of dogs and sheep