U6 project debugging help

A student has some bug issues and is struggling. The idea is pretty great but she could use some help as she knows something is off. I cant find it either.

I don’t have the maker app so I can’t test it but I’m guessing it has to do with the player_y variable. player_y was created on line 33 inside the movePlayer function so it makes it local to that function and can’t be used on lines 44 or 45.
Have your student create the variable outside the function (maybe on line 25 after the rounds variable).