untested inital code for mass removal and collision detection