diff --git a/src/main/java/dotsandboxes/DotsAndBoxesGrid.java b/src/main/java/dotsandboxes/DotsAndBoxesGrid.java index a0e915ec2ff5d993a63b610651a2b87f0cdd29d5..a51be3d543bc77638bf92b88291b48f9f0874126 100644 --- a/src/main/java/dotsandboxes/DotsAndBoxesGrid.java +++ b/src/main/java/dotsandboxes/DotsAndBoxesGrid.java @@ -184,9 +184,9 @@ public class DotsAndBoxesGrid { }else{ this.verticals[x][y] = true; - // Try to claim the north or south boxes - boolean claimN = claimBox(x, y-1, player); - boolean claimS = claimBox(x, y, player); + // Try to claim the left or right boxes + boolean claimN = claimBox(x, y, player); + boolean claimS = claimBox(x-1, y, player); if (claimN || claimS) { notifyObservers(); return true;