fix bug in close game