While loop in thread running without animation
while