Update grinder.lua

Added Brandon's protection code