@Chaboi_3000 indentation doesn’t matter… i had extra indentation before and the level still worked.
Less than necessary indentation is bad though.
I think the problem is this:
after the if section loop:
you need to add an else statement and put the moveXY inside it
else: hero.moveXY(x, y) <-- put coords in