public void checkDisconnections(){
    	
    	for (PlayerPawn v : playerPawns){
        	
        }
        
        //Iterator used for removing players from the game when they're dead/disconnected.
        //Using an interator because otherwise shifting indexes will cause issues
    	synchronized (playerPawns){
	    			
	        Iterator it = playerPawns.iterator(); 
	        while(it.hasNext()){
	            PlayerPawn o = (PlayerPawn) it.next();
	            if (o.isDead()){	
	            	
	            	//Causes game to kind of freeze after enemy is killed
	                //it.remove();
	            }
	        }
	        
	      //If no players left, server will close
	        if (playerPawns.isEmpty()){
	        	JOptionPane.showMessageDialog(frame, "All players have disconnected, exiting game");
                        logEvent("All Players have died. Disconnnecting game");
	        	System.exit(0);
	        }
    	}
    }