Suppose we are given a two-dimensional plane. Also, we are given $n$ particles with "charges" $Q_1, Q_2, \dots, Q_n > 0$. Since all of them have positive charges, they repel each other. Each particle has a mass: $m_1, m_2, \dots, m_n$. Also, when a particle collides with a border, it bounces off in the same manner as a snooker ball would bounce.
Now, the plane and the particles comprise a closed system, and its total energy is
$$E_{\text{total}} = \sum_{i = 1}^n \frac{1}{2}m_i v_i^2 + \sum_{i = 1}^n \sum_{j = i + 1}^n \gamma \frac{Q_i Q_j}{r_{i,j}},$$ where $r_{i,j}$ is the distance between $Q_i$ and $Q_j$.
I am working on a computer simulation of such a system, yet I have a problem: the total energy grows, so we cannot speak about a closed system. My question is:
Does there exist a unique $\gamma$ such that the total energy remains constant in such a simulation?