This part of your code will trigger every time you are outside of the thugs area, so if you attack a thug outside of this area your script will make you walk back to inside this area. Increase the area so that all of the spots thugs can walk to are also included.