script now stops when less than 1k coins