Added simulation thread in Window