Dude it's nearly perfect. But you gotta fix npc kill and collecting boxes same time. It's generally works perfect but sometimes after killed a monster it passes boxes while in the sight. I think you should add(or call) search boxes method before go a random cord and found a new monster method. (Sorry for my bad english but i hope you'll understand )