Fixed bug that game did not end on game over