stop snake going back on itself