I have had to put my chickens on restriction, because they keep getting in my neighbor's yard. I don't want a ticket for roaming livestock, so I only let them out when I can be with them, which is usually between three and six pm. In order to keep them in line, I have "the stick of death," which is actually a garden fork:
All I have to do is swish it, and they move into the back yard.
And here is Rocky. He's doing quite well!