Refactored util.ts/utilities.ts to collision.ts, interfaces.ts, and utilities.ts