added resource trading costs and updated road building failsafe