Inelastic collisions with walls implevented