added optimization when moving the character; modify the model.paths
array with the new position instead of recalculating all the paths.