First version of clossing room automaticly