Fixed premature game ending.