//Stops race on trigger, then calculates player time
 public void OnTriggerEnter(Collider collider)
 {
     if (collider.tag == "Player")
     {
         pMoveScript.StopRacing();
         canvasEnd.SetActive(true);
         CalculateStars();
         Timer_Script.timer.Stop();
         speaker.Play();
         canvasEnd.GetComponentInChildren <Return_To_World_Script>().noWin = false;
         canvasEnd.GetComponent <Finish_Menu_Script>().CountStars(World_Script.starsAchieved);
     }
 }