made agentbased.cpp output cost and made cost get updated with discounted t.getNewCost()