$ 0 0 Well, moving is getting set to true and it's defined outside the scope of MoveFromTo. That means the 2nd call to MoveFromTo doesn't do anything.