decease time and fix game ending