diff --git a/snake.py b/snake.py
index 2054ead..aca0c0b 100644
--- a/snake.py
+++ b/snake.py
@@ -59,6 +59,7 @@ while True:
         num2 = random.randint(1,16)
         apple_x = num1 * 30-30
         apple_y = num2 * 30-30
+    else:
         apple_x =random.randint(0,660)
         apple_x =random.randint(0,480)
     position.pop(0)