check for going round in circles