in the process of changing the collision flag to a boolean and a counter instead of just a counter...