Fixed several bugs pertaining to game-overs.