Java: Token Ring algorithm stopping criteria added.