instead of map(x,y)=level
you need something like:
map(x,y) = mid$(level,x+1,1)
which will extract each digit from the string individually
you need something like:
map(x,y) = mid$(level,x+1,1)
which will extract each digit from the string individually