diff --git a/src/GomokuCell.java b/src/GomokuCell.java index 0acb074..d1f9591 100644 --- a/src/GomokuCell.java +++ b/src/GomokuCell.java @@ -34,10 +34,7 @@ public class GomokuCell{ } public boolean isPlayable(){ - for (GomokuCell var : this.neighbour.values()) { - if (var.isPlayed()) return true; - } - return false; + return this.neighbour.size() > 0; } }