had to change render loop a bit to update position of offscreen npcs