public void onDeath()
    {
        isDead = true;

        if (points > (int)PlayerPrefs.GetFloat("Highscore"))
        {
            PlayerPrefs.SetFloat("Highscore", points);
        }

        deathMenu.triggerDeathMenu((int)points);
    }