Counting down the number of moves.