diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index 26550b1..cf58c54 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -74,7 +74,13 @@ public class GridGUI { } public class MyCellListener implements ActionListener { public void actionPerformed(ActionEvent a) { - + if(!clicked) { + BSButton cell = (BSButton) a.getSource(); + Ship s = cell.getCellContents(); + boolean killed = false; + numOfGuesses++; + boolean gameOver = true; + } } } } \ No newline at end of file