HOPKINS: Refactor checkCollisionLine