Resolves AVM1 scope variable

Fixes boundary check for #171 Punch the Monkey