//button click event handler that handles creating battleship of Board A public void CreateBattleShipA(object sender, EventArgs e) { if (BattleshipA.BattleshipACount() < 4 && BattleshipA.BattleshipACount() > 0) { boatsettingPoint2BattleShipA(sender, e); } if (BattleshipA.BattleshipACount() == 0) { ((Button)sender).BackColor = Color.Yellow; ((Button)sender).Enabled = false; btnCreateCruiserA.Enabled = true; BattleshipA.BattleshipADecrement(); disableBoardA(); MessageBox.Show("Please click Create Battleship", "Cruiser Complete"); } if (BattleshipA.BattleshipACount() == 4) { ((Button)sender).BackColor = Color.Yellow; ((Button)sender).Enabled = false; boatSettingPoint1A(sender, e); BattleshipA.BattleshipADecrement(); } }