integrated update and render methods for npcs