void Start()
        {
            ToniIsComming01 = ToniIsComming();
            ToniIsComming02 = ToniIsComming();

            MeetToni001 = MeetToni();
            MeetToni002 = MeetToni();
            CantLeaveCube01.SetActive(false);
            CantLeaveCube.SetActive(false);
        }
        public void CaughtCounterChecker()
        {
            switch (caughtCounter)
            {
            case 0:     //player has been caught
                if (gotCaught == true && escapeCounter == 0)
                {
                    player.transform.position = playerJailPoint.transform.position;
                    gotCaught = false;
                    escapeCounter++;
                }
                if (gotCaught == true && escapeCounter == 1)
                {
                    player.transform.position = playerJailPoint.transform.position;
                    gotCaught = false;
                }

                switch (escapeCounter)
                {
                case 1:         //player did not already escape

                    if (stopSpamming == true)
                    {
                        StartCoroutine(ToniIsComming01);
                        stopSpamming = false;
                    }

                    //if (metToni == true) //toni met with player before he escaped
                    //{
                    //    player.transform.position = ballRoomTeleport.transform.position;
                    //   // caughtCounter++;
                    //}

                    if (hasEscaped == true)         //player escaped
                    {
                        foreach (GameObject escapeBox in escapepoints)
                        {
                            Destroy(escapeBox);
                        }

                        escapeCounter++;
                    }

                    break;

                case 2:         //player has already escaped
                    if (pleaseWork == true)
                    {
                        StopCoroutine(MeetToni001);
                        StopCoroutine(ToniIsComming01);
                        escapeCounter++;
                        pleaseWork = false;
                    }

                    break;

                case 3:
                    if (gotCaught == true)
                    {
                        //"play cutscene"
                        CantLeaveCube01.SetActive(true);
                        CantLeaveCube.SetActive(true);
                        player.transform.position = playerJailPoint.transform.position;
                        if (stopSpammingAgin == true)
                        {
                            StartCoroutine(MeetToni002);

                            stopSpammingAgin = false;
                        }
                        gotCaught = false;
                    }
                    break;
                }
                break;

            case 1:
                if (gotCaught == true)
                {
                    player.transform.position = ballRoomTeleport.transform.position;
                    caughtCounter++;
                    gotCaught = false;
                }
                break;

            case 2:
                if (gotCaught == true)
                {
                    player.transform.position = kickedOutPoint.transform.position;
                    caughtCounter++;
                    gotCaught = false;
                }
                break;

            case 3:
                SceneManager.LoadScene("Level_failure");
                break;
            }
        }