fixed improper game termination