public void EndGametoHighScore()
    {
        SDTimer   = Timer.GetComponent <SpeedDotTimer>();
        SDHSTable = HighScoreTable.GetComponent <SpeedDotHighScoreTable>();

        SDTimer.StopTimer();

        SDHSTable.checkScore(SDTimer.GetTime()); // Ignore AAA, originally for name input, not doing that no more.
        SDTimer.ResetTimer();

        /*--------Turn off stuff we don't need, then render table-----*/
        SpeedDotConnector2D.SetActive(false);
        SpeedDots.SetActive(false);
        GamePlay.SetActive(false);
        Timer.SetActive(false);
        HighScoreTable.SetActive(true);
    }
    // Start is called before the first frame update
    void Start()
    {
        SDHSTable = HighScoreTable.GetComponent <SpeedDotHighScoreTable>();

        SpeedDotConnector2D.SetActive(false);
        SpeedDots.SetActive(false);
        GamePlay.SetActive(false);
        Timer.SetActive(false);
        MainMenuCanvas.SetActive(true);
        HighScoreTable.SetActive(false);
        GoToSwipeMenu.SetActive(true);


        SDHSTable.HighScoreTableCheck();


        //Check if we have a highscore table
    }