Forest Fire Dancing Help (JavaScript)

You only have to find the evilstone and the pos once so you can remove all the other times you look for it to clean up the code. When you get to the first else, just look at the second position.

if (pos.x == 46) {
hero.moveXY(34, 22);

The second else only needs to move the hero to the middle position.

To help with any formatting problems, you’ll need to format the code correctly when posting it.