public BoardCell pickLocation(HashSet<BoardCell> targets) {

		//If the list of targets locations includes a room, select that location unless the player was just in that room.
		//If the list does not include a room, or the room was just
		//visited, randomly choose from all locations (gives some chance that the player will re-enter the room, but it's not automatic).
		if(accusation != null) {
			String person = " ", room=" ", weapon=" ";
			for(Card c : accusation) {
				if(c.getType() == CardType.PERSON)
					person = c.getName();
				else if(c.getType() == CardType.ROOM)
					room = c.getName();
				else if (c.getType() == CardType.WEAPON)
					weapon = c.getName();
			}
			makeAccusation(person, room, weapon);
		}

		ArrayList<BoardCell> possibleWalkways = new ArrayList<BoardCell>();

		for (BoardCell target : targets) {
			if(target.isDoorway() == true && target.cellInitial() != lastRoomVisited){
				//RoomCell room = (RoomCell) target;
				//this.setposition(target.getLocation());
				lastRoomVisited = target.cellInitial;
				return target;

			}else if (target.isWalkway()) {
				possibleWalkways.add(target);
			}
		}
		Collections.shuffle(possibleWalkways);
		return possibleWalkways.get(0);
	}