diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 64f01964..c6123594 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -33,12 +33,12 @@
-
+
-
+
@@ -50,8 +50,8 @@
-
-
+
+
@@ -71,8 +71,8 @@
-
-
+
+
@@ -83,8 +83,8 @@
-
-
+
+
@@ -229,8 +229,8 @@
-
-
+
+
@@ -246,8 +246,8 @@
-
-
+
+
@@ -256,8 +256,8 @@
-
-
+
+
diff --git a/agent.py b/agent.py
index f5eb7020..51b42156 100644
--- a/agent.py
+++ b/agent.py
@@ -27,10 +27,11 @@ def act(self, state, tau):
state.print()
time.sleep(2)
action = -1
+ allowedActions = state.allowedActions
while 1:
try:
action = int(input('Enter your move: '))
- if state.allowedActions.__contains__(action):
+ if allowedActions.__contains__(action):
break
else:
print('Enter a valid move.')