update solution code combat