Simply create instance variable name it 'speed'. Move the block by set the var 'speed' with desired number. When the block overlap/collide, make the 'speed' zero and it should stop moving.
For actual example see mine's
There are some tetris examples in forum, that give ideas how to arrange the blocks in stack manner. One of them came from rojohound.