add threshold of 2s before changing directions