Tetris game detailed code