refactor(worldhandler): more loop functions, wip
fix(deletenpc): fix bad units array reference