A Tetris attempt in TypeScript.