update coins and obstacles