implemented fineGrainedCollision detection