fixed closing game window