coded function to catagorise entered npcs by zone