Adding new method to stop movement of objects when clicked