Improved NPC movement to stop them glitching into the side of blocks