public void mousePressed(MouseEvent e){

			//If the board isn't initialised yet, don't do anything.
			if(board.getBoardTiles() == null){return;}

			//Find the square that the user clicked on.  If they clicked outside the board, ignore it.
			int boardSize = board.getBoardTiles().length+1;
			int squareX = (int)(e.getX()/boardSize);
			int squareY = (int)(e.getY()/boardSize);
			if(squareX < 0 || squareX > 23 || squareY < 0 || squareY > 23){return;}

			//Get the board object that was clicked on.
			BoardObject clicked = board.getBoardTiles()[squareY][squareX];

			//Is the user dragging a player and is it that player's turn?
			dragging = clicked instanceof Player && (Player)clicked == game.getWhoseTurn() ? (Player)clicked : null;

			//If the user is trying to drag the current player:
			if(dragging!=null){
				//Make a point to track the position of the player as it's dragged.
				dragging.setDraggingPosition(new Point(e.getX(), e.getY()));

				//Get the original location of the player and remove the token from the board.
				int x = dragging.getPosition().getX(), y = dragging.getPosition().getY();
				if(dragging.getRoom() == null){//If it's not in a room, just null the position
					board.getBoardTiles()[y][x] = null;
				}else{//Otherwise, replace the token with a room reference.
					board.getBoardTiles()[y][x] = dragging.getRoom();
				}
			}
		}