modify setDifficultyForNetWork, add msg send function for network battling