tetris in typescript