modified logic and npc things, fixed editor setup