refactored collider working in oo engine