Collision detector class