public void Run() { Random rand = new Random(); bool playAgain = true; UserIO.WhiteOutput(); do { bool playerTwoFirst = (rand.Next(0, 2) == 1); HandleGame(playerTwoFirst); playAgain = UserIO.GetPlayAgain(); if (playAgain) { //Reset ships without asking for names again Player1.ShipSetup(); Player2.ShipSetup(); continue; } } while (playAgain); UserIO.WriteLine("Thanks for playing! Goodbye!"); }