public void valueChanged(ListSelectionEvent e){
		System.out.println(playerTurn);
		if(player != null && playerTurn && !gameIsWon){
			//if(connector.myTurn()){

			if (e.getValueIsAdjusting())
				return;
			int x = board.getSelectedColumn();
			int y = board.getSelectedRow();

			if (x == -1 || y == -1 || !boardModel.isEmpty(x, y))
				return;
			try {
				boardModel.setCell(x, y, mark);
	
				if (player.setMark(x, y, mark)){
					gameIsWon = true;
					setStatusMessage("Player " + mark + " won!");
				}
			} catch (RemoteException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}
			
			try {
				player.serverTurn(true);
				playerTurn = false;
			} catch (RemoteException e2) {
				// TODO Auto-generated catch block
				e2.printStackTrace();
			}
	

			currentPlayer = 1 - currentPlayer; // The next turn is by the other player.
		}

	}