let consider game Sticky Tetris in game field n time m square Tiles appear field player tile each tile 4connected set 7 squareseach new tile appear position fit inside field intersect tile cell tile row field the player tile leave right moment tile entirely fit inside field intersect tile the player stop tile position time after move since Sticky Tetris tile fall stoppedyou give final configuration Sticky Tetris game you need restore sequence step lead configuration exist