modified CollisionDetector, add mutater and accessor