Do you mean that you just want to have balls moving inside a rectangle box and collide with each others?