goes to opposite direction when there are not enough elements (finally quine snippet works!)