void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.tag == "Player") //checks if the player was the object that collided with the gameobject the script is attached to
     {
         if (gameOver == false)                //if the game is over, then the UI would be disabled, so the the below function wouldn't be able to be run
         {
             characterSelector.StartHidePlayerTimer();
         }
         StartCoroutine(SwapLevelTimer());
     }
 }