Hmm... I'm not sure I understand how this is supposed to work. Why is this resetting the isMoving variable?

Also, shouldn't we be resetting totalTime here? (or do I not understand this code?)