I'm not clear on what you mean by"pecking them with a stick." Broody hens as well as adult chickens in a flock will discipline juveniles by pecking them on the back with their beaks. You can simulate this by using your finger, but do it gently or you can knock a baby chick off its little feet. I and others have had very good success with this method, and it usually stops the troublesome behavior in just a couple days.
Other things you can do to stop or prevent pecking and picking among chicks are detailed in my article on the topic linked below my post.
Other things you can do to stop or prevent pecking and picking among chicks are detailed in my article on the topic linked below my post.