void OnCollisionEnter(Collision col)
 {
     if (col.gameObject.CompareTag("Pick Up"))//when game object with tag is hit will count pickUps
     {
         count = count + 1;
         SetCountText();
         spawn.obstacleList.Remove(col.gameObject);//spawns in the inspector whats in play screen
         Destroy(col.gameObject);
     }
     //triggers the boost effect
     else if (col.gameObject.CompareTag("Booster"))//when game object with tag is hit will activate boost
     {
         spawn.Booster();
         spawn.obstacleList.Remove(col.gameObject);//spawns in the inspector whats in play screen
         Destroy(col.gameObject);
     }
     //destroy game object on coliision and reload scene
     else if (col.gameObject.CompareTag("Destroy")) //when game object with tag is hit will load new scene
     {
         scoreCount.score = count;
         //reloads scene currently0
         SceneManager.LoadScene(sceneName: replay);
     }
 }