close game code added