fixed wait for input operation. added tetris