implementing doneMoves