diff --git a/src/main/java/BattleShip/GridGUI.java b/src/main/java/BattleShip/GridGUI.java index f7023f5..45401c3 100644 --- a/src/main/java/BattleShip/GridGUI.java +++ b/src/main/java/BattleShip/GridGUI.java @@ -74,7 +74,9 @@ public class GridGUI { } } public boolean getClicked() {return clicked;} - + public void setClicked() { + clicked = false; + } public class MyCellListener implements ActionListener { public void actionPerformed(ActionEvent a) { if(!clicked) {