refactored the generic collision listener and removed debug output