Generalization of the dbname
diff --git a/js/utils.js b/js/utils.js
index cc6e2a6..315cf19 100644
--- a/js/utils.js
+++ b/js/utils.js
@@ -34,7 +34,7 @@
 	
 	if (info.requested) {
 		// Check for requests
-		if(info.requested) dead = confirm("El teu assassí ha dit que t'ha matat, és veritat?");
+		if (info.requested) dead = confirm("El teu assassí ha dit que t'ha matat, és veritat?");
 		
 		// Confirm/deny request
 		if (dead) send_request(user, "CONF DEAD"); // confirm death
@@ -55,16 +55,16 @@
 			let info = JSON.parse(response);
 			
 			// Check if user is dead
-			if (!user.mort) user.mort = check_requests(info, user);
+			if (!user.mort && !info.mort) user.mort = check_requests(info, user);
+			else window.location.href = "./dead.php";
 			
 			// Check if there has been a change of victim					
 			if (info.quimata != user.quimata) {
-				if (!user.mort) change_victim(info);
-				else window.location.href = "./dead.php";
+				change_victim(info);
 				user.quimata = info.quimata;
 			}
 			
-			console.log(response);
+			console.log("Response: " + response);
 	}});	
 }