Added CollisionDetection

And First commands for CollisionApplying