private void btn_Ok_Click(object sender, EventArgs e)
 {
     if (txtBox_ObjectName.Text == "")
     {
         MessageBox.Show("Name cannot be blank");
         return;
     }
     if (names.Contains(txtBox_ObjectName.Text))
     {
         MessageBox.Show("The name " + txtBox_ObjectName.Text + " already exists");
         return;
     }
     ObjectType type = GetObjectType();
     switch (type)
     {
         case ObjectType.Player:
             Player player = new Player(txtBox_ObjectName.Text);
             ReturnObject = player;
             break;
         default:
             MessageBox.Show(type.ToString() + " has not been implemented yet");
             return;
     }
     DialogResult = DialogResult.OK;
     Close();
 }
 public bool SetInputConfig(Player player, InputConfig config)
 {
     if (!inputConfigs.ContainsKey(player)) return false;
     inputConfigs[player] = config;
     return true;
 }
 public bool AddInputConfig(Player player, InputConfig config)
 {
     if (inputConfigs.ContainsKey(player)) return false;
     inputConfigs.Add(player, config);
     return true;
 }
 public bool RemoveInputConfig(Player player)
 {
     return inputConfigs.Remove(player);
 }