public static void AddToInventory() { Console.WriteLine("Add something to inventory..."); string playerItemStr = Console.ReadLine(); int playerItemInt = 0; if (int.TryParse(playerItemStr, out playerItemInt)) { Player.Add(playerItemInt); } }