interactive implementation of tetris 6816298