public void checkWin(){
    	
    	for (PlayerPawn v : playerPawns){
    		if (v.checking){
    			//Only shows if it's the only player left
    			if (playerPawns.size()==1){
    				JOptionPane.showMessageDialog(frame, "Player " + v.getId() + " wins!, game exiting");
    				
    				//Sends the client the exit command, and closes
    				com.send(findPlayerPawnById(playerPawns.get(0).getId()), 9, "9");
    				System.exit(0);
    			}   			
    			v.checking = false;
    		}
    	}
    	
    	
    	
    	
    }