update java thread infinite loop lab