Chiefs edge Sharks in eight-try thriller