Tetris in TypeScript