fmt.Fprintf(system.colonizedBy,"mining colony on %s pays you %d space duckets. total: %d space duckets.\n",system.name,reward,system.colonizedBy.money)
ifsystem.colonizedBy!=nil{
system.colonizedBy.money+=reward
fmt.Fprintf(system.colonizedBy,"mining colony on %s pays you %d space duckets. total: %d space duckets.\n",system.name,reward,system.colonizedBy.money)