refactored collision manager class