update stones logic