still freezing after 3 loops; removing the while True outer looper