some script fixes

fixed food.lua and made a small change to rope.lua