/// <summary>
        /// Despawn the segment
        /// </summary>
        /// <param name="deSpawnIndex"></param>
        public void DeSpawnTrackSegment(int deSpawnIndex)
        {
            TrackSegment despawnSegment = activeSegments[deSpawnIndex];

            //Despawn obstacles
            ObstacleSpawner.DeSpawnObstacles(ref despawnSegment);

            //Deactivate segment
            despawnSegment.gameObject.SetActive(false);
            despawnSegment.transform.SetParent(this.transform);

            //Remove from active segments
            activeSegments.RemoveAt(deSpawnIndex);
        }