LOL Welcome to the terrible 2's.
Yes, just like children, kittens go through this too. Sounds like our kittens are approx. the same age. Mine is also going through this stage. When not eating or sleeping, she's tearing around the house like The Flash. She is constantly hunting either myself or my wife, or Tink, our older cat.
The hunt usually has her attacking our feet as we are walking, so we have to be extra careful not to kick her or step on her right now. But she also has this habit of sitting our our feet when we are standing around doing something, weather in the bathroom or kitchen, then climbing our leg. Not so bad when wearing jeans or thick sweats, but ouch when our wearing something light.
Again, its natural behavior, and simply have to live through it till he/she grows out of it.
We do not scold her for any of this behavior, we know its simply her natural growing up as a cat. And locking her in a room to be honest may be making the situation worse. It just has her energy pent up more, thus having her release it even more once out. I would suggest giving her a good round of hard core playing, get some of that energy out. This also gives you the ability to train him/her as to what is too rough of play. If your not sure on how to do this, feel free to read up some of the threads posted here about it. Theres alot of tecniques that can be used, the one we use on our cats is to express our selves to them in ways they understand. For example, if she gets to playing too rough, I will get down to the same level as her, give her a stare and a low growl, and even a light swat, similar to how another cat might do. This simply tells her "I am not happy with you right now." It worked for us on our first cat, and we already have our 2 month old trained to the point where she knows when too rough is too rough.
Guess were kinda lucky, since our older cat deflects alot of this type of play from us... but she gets annoyed also, and will usually come to us and tell us its our turn to baby sit