implementing jewels fall and rollup