Who were the Chinese constantly fighting with?