clear terminal window after each move