Play a rotating Tetris game. Drop down blocks and make squares of at least 3x3…