Jane Street interview question

Create a tetris game engine.