Completed initial logic for CollisionDetection()