Implemented NPC movement along a path.