I see what you mean yeah...
I'm not sure but there's no indication that the particles lose any velocity after hitting the walls. I guess if they did they'd all end up stationary eventually? So maybe the velocity is the same as before just in the opposite direction so the negative of the original momentum. I don't know whether that's right, it's just the best I can offer I'm afraid 😄👍