# Help debug student program

**URL:** https://forum.code.org/t/help-debug-student-program/40737
**Category:** CS Discoveries
**Tags:** csd-unit-3
**Created:** [May 9, 2025, 4:35pm UTC](https://forum.code.org/t/help-debug-student-program/40737 "2025-05-09T16:35:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lorikaye](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@lorikaye](https://forum.code.org/u/lorikaye)
#### Post date: [May 9, 2025, 4:35pm UTC](https://forum.code.org/t/help-debug-student-program/40737/1 "2025-05-09T16:35:45Z")

</div>

My student has created a very complex program that is beyond my ability to help.

Here’s the link:

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

**What’s supposed to happen:**  
Mario moves to the right through the side scroller game using arrow keys

**What’s happening:**  
So far, every time I go close to the end of the game, somewhere around mario.x = 2500 - 3000, or if I hit question blocks farther in the game, [code.org](http://code.org/) freezes and says the page is unresponsive.

**What I’ve tried:**  
I have tried deleting sprites once i’ve gone past them (lagFix() ), i’ve checked for loops that would break it in the hitQuestion() function and the rest of the code, but I don’t even have an idea if its my actual game or just something to do with [code.org](http://code.org/). (Also, DO NOT use the wasd keys, A and D zoom you around the map for testing, use the arrow keys)

---

<div class="post-metadata">

### Author: ![varrience](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/varrience/32/8042_2.png) [@varrience](https://forum.code.org/u/varrience)
#### Post date: [May 9, 2025, 8:15pm UTC](https://forum.code.org/t/help-debug-student-program/40737/2 "2025-05-09T20:15:51Z")

</div>

not sure if this helps but, [this](https://studio.code.org/projects/gamelab/EcGV9QyRn26fOpD818KeYXaoQsgYiqjfdJOK7rmYiGg) seems to work at least i hadn’t had any issues like you mentioned i think the renderer was getting overwhelmed with everything it needed to render as `lagFix` seems to be more placebo like also the jump mechanic does need some refactoring too (unless you think the quick fix will do fine)
