Thanks. :)
Yes that is one of the flaws with it, Because I am only always reversing both the x and y movement direction when you click on a sheep it can cause them to get stuck in one corner sometimes. After they stop and start they do start going in a random direction instead of the direction they where going in before but that doesn't entirely fix the problem though.
Your idea is a interesting one though, will have to think about it some more to see if I can come up with a solution. Thanks. :)