vm_coin with working change algorithm

to removing the returned coins from coin stock