public void createCharacter() // Create character { Write("Name:\t"); string inputName = ReadLine(); Write("Background story:\t"); string inputDesc = ReadLine(); Write("Superpower:\t"); string inputSuperpower = ReadLine(); Write("Weakness:\t"); string inputWeakness = ReadLine(); Write("Enemy:\t"); string inputEnemy = ReadLine(); Write("Mission:\t"); string inputMission = ReadLine(); Write("\nChoose character type: [1] Superhero\t [2] Villain\t"); string str_type_choice = ReadLine(); Int32.TryParse(str_type_choice, out int type_choice); if (type_choice == 1) // Creates an object via the subclass "Superhero" { Superhero newSuperhero = new Superhero(inputName, inputDesc, inputSuperpower, inputWeakness, inputEnemy, inputMission); addSuperhero(newSuperhero); // Calling class for adding/serializing to list/to json WriteLine("\nSuperhero created!"); ReadKey(); } else if (type_choice == 2) // Creates an object via the subclass "Villain" { Villain newVillain = new Villain(inputName, inputDesc, inputSuperpower, inputWeakness, inputEnemy, inputMission); addVillain(newVillain); // Calling class for adding/serializing to list/to json WriteLine("\nVillain created! Press any key for menu..."); ReadKey(); } else { WriteLine("Choose 1 or 2. Press any key to try again..."); // Error handling ReadKey(); } }