For some reason this code doesn’t work. Can you help me?

Here is my code:

```
# 0 is a wrong point. Positive numbers are skeletons or useful items.
spell = "VENI"
# The map of points is represented as 2d array of numbers.
wizard = hero.findNearest(hero.findFriends())
powerMap = wizard.powerMap
# This function convert grid coordinates to x-y coordinates.
def convert(row, col):
return {'x': 16 + col * 12, 'y': 16 + row * 12}
# You need loop through powerMap and find all positive numbers.
# First, loop through indexes of rows.
for i in range(len(powerMap)):
# Each row is an array. Iterate through it.
for j in range(len(powerMap[i])):
# Get the value of the i-th row and j-th column.
pointValue = powerMap[i][j]
# If it's a positive number:
positiveNumber = hero.findNearest(hero.findEnemies()) or hero.findNearest(hero.findItems())
if positiveNumber:
# Use the 'convert' function to get coordinates.
x, y = convert(row, col)
# Move there, say "VENI", fight or pick up an item.
hero.moveXY(x, y)
hero.say(spell)
```