fixed game loseing bug