private void editLibTokenBtn_Click(object sender, EventArgs e)
        {
            int curSelectedIndex = tokenLibList.SelectedIndex;

            if (curSelectedIndex < 0)
            {
                MessageBox.Show("No token selected.", "Error.", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            TokenData tokenData = gameState.TokenLibrary[(string)tokenLibList.SelectedItem];

            EditTokenForm charForm = new EditTokenForm(gameState);

            charForm.SetTokenData(ref tokenData);
            DialogResult result = charForm.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                tokenData           = charForm.GetTokenData();
                tokenData.CurrentHP = tokenData.MaxHP;
                gameState.TokenLibrary[tokenData.Name] = tokenData;

                tokenData.SaveToLibrary();
            }
        }
        private void newTokenBtn_Click(object sender, EventArgs e)
        {
            EditTokenForm charForm = new EditTokenForm(gameState);
            DialogResult  result   = charForm.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                TokenData newData = charForm.GetTokenData();
                newData.CurrentHP = newData.MaxHP;
                gameState.TokenLibrary.Add(ref newData);

                newData.SaveToLibrary();
            }
        }