Cool! I made a demo playable in the browser: https://repl.it/@amasad/tinytetris Or run it directly here: https://tinytetris.amasad.repl.run/
Is it just me? I can't make any operations, and tetrominoes did not drop from center (horizontally), but kind of from random position
And yes, the starting position of new pieces looks random.