# CSD Unit 3 - Lesson 23 Obstacles not Looping

**URL:** <https://forum.code.org/t/csd-unit-3-lesson-23-obstacles-not-looping/34699>\
**Category:** Coding and Debugging Help\
**Created:** [May 11, 2021, 6:36pm UTC](https://forum.code.org/t/csd-unit-3-lesson-23-obstacles-not-looping/34699 "2021-05-11T18:36:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanema](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sanema](https://forum.code.org/u/sanema)\
**Post date:** [May 11, 2021, 6:36pm UTC](https://forum.code.org/t/csd-unit-3-lesson-23-obstacles-not-looping/34699/1 "2021-05-11T18:36:00Z")

</div>

**Link to the project or level:**

> **[Check out what I made](https://studio.code.org/projects/gamelab/eHhZ585rgtAnSmCeTjekDLWVriNkhugCtD1tASWnlh8)**
>
> I wrote the code myself with Code.org

\*\*What I expect to happen:\*\*The obstacles should loop.

**What actually happens:** The obstacles disappear when they go off the grid.

**What I’ve tried:** I’ve tried to match the student coding to what the answer key says, but it doesn’t appear to work.

---

<div class="post-metadata">

**Author:** ![szylman](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@szylman](https://forum.code.org/u/szylman)\
**Post date:** [May 11, 2021, 10:59pm UTC](https://forum.code.org/t/csd-unit-3-lesson-23-obstacles-not-looping/34699/2 "2021-05-11T22:59:08Z")

</div>

The seagull is moving on the y axis and the student has reset the X location.

> **[Check out what I made](https://studio.code.org/projects/gamelab/Hy9WdQ5ByjVnYCvNmg92ifzO09CuZX6fatUh9b2N9A4)**
>
> I wrote the code myself with Code.org

This will help the seagull that is moving to the right.

---

<div class="post-metadata">

**Author:** ![mkmietowicz](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mkmietowicz/32/6322_2.png) [@mkmietowicz](https://forum.code.org/u/mkmietowicz)\
**Post date:** [May 12, 2021, 3:50am UTC](https://forum.code.org/t/csd-unit-3-lesson-23-obstacles-not-looping/34699/3 "2021-05-12T03:50:34Z")

</div>

Hi @sanema,

Cool game! As the other user alluded to, I’d recommend looking more closely at which seagull you are changing and which axis (x or y) it’s moving on. Tell the student that & they should be able to problem-solve from there!

–Michael K.
