diff --git a/System/game/system/_Node.java b/System/game/system/_Node.java index 1c4f602..0341134 100644 --- a/System/game/system/_Node.java +++ b/System/game/system/_Node.java @@ -17,8 +17,8 @@ public class _Node implements Node public int getY() { return y; } public boolean isJunction() { return numNeighbors > 2; } - public boolean isPill() { return pillIndex <= 0; } - public boolean isPowerPill() { return powerPillIndex <= 0; } + public boolean isPill() { return pillIndex >= 0; } + public boolean isPowerPill() { return powerPillIndex >= 0; } public int getNumNeighbors() { return numNeighbors; } public List getNeighbors() { return Arrays.asList(Arrays.copyOf(neighbors, neighbors.length)); }