//Returns Player to main menu
 void ReturnToMenu()
 {
     database.player.playerHealth      = database.player.MAX_PLAYER_HEALTH;
     database.player.LifetimeDistance += (int)Mathf.Round(database.player.currentPosition);
     database.AddScore(new Score()
     {
         time     = System.DateTime.Now.ToShortTimeString(),
         date     = System.DateTime.Now.ToShortDateString(),
         distance = Mathf.RoundToInt(database.player.currentPosition),
         score    = database.player.score
     });
     milestones.checkMilestones();
     database.SetPlayerData();
     database.player.resetCurrentGameStatistics();
     SoundManager.Instance().GetComponent <AudioSource>().clip = SoundManager.Instance().mainMenuMusic;
     SoundManager.Instance().GetComponent <AudioSource>().Play();
     SceneManager.LoadScene("Main Menu", LoadSceneMode.Single);
 }