Fixed bugs about game ending
1.0.0.25