logic fix - dont get stuck going back and forth without turning