added game auto closing