@Test
	public void selectLocationTest() {
		System.out.println(board.getPlayers().size());
		ComputerPlayer player = (ComputerPlayer)board.getPlayers().get(0);
		// Pick a location with no rooms in target, just three targets
		board.calcTargets(board.calcIndex(3, 3),2);
		int loc1 = 0;
		int loc2 = 0;
		int loc3 = 0;
		// Run the test 100 times
		for (int i=0; i<100; i++) {
			BoardCell selected = player.pickLocation(board.getTargets());
			if (selected == board.getCellAt(board.calcIndex(3, 5)))
				loc1++;
			else if (selected == board.getCellAt(board.calcIndex(5,3)))
				loc2++;
			else if (selected == board.getCellAt(board.calcIndex(4,4)))
				loc3++;
			else
				Assert.fail("Invalid target selected");
		}
		// Ensure we have 100 total selections (fail should also ensure)
		Assert.assertEquals(100, loc1 + loc2 + loc3);
		// Ensure each target was selected more than once
		Assert.assertTrue(loc1 > 10);
		Assert.assertTrue(loc2 > 10);
		Assert.assertTrue(loc3 > 10);	
		board.calcTargets(board.calcIndex(5, 1), 1);
		for(int i = 0; i < 100; i++){
			player.lastVisitedName = 'z';
			BoardCell selected = player.pickLocation(board.getTargets());
			Assert.assertEquals(selected, board.getCellAt(board.calcIndex(4, 1)));
		}
		player.lastVisitedName = 'E';
		loc1 = 0;
		loc2 = 0;
		loc3 = 0;
		// Run the test 100 times
		for (int i=0; i<100; i++) {
			BoardCell selected = player.pickLocation(board.getTargets());
			if (selected.equals(board.getCellAt(board.calcIndex(5, 0))))
				loc1++;
			else if (selected.equals(board.getCellAt(board.calcIndex(5, 2))))
				loc2++;
			else if (selected.equals(board.getCellAt(board.calcIndex(4, 1))))
				loc3++;
		}
		// Ensure we have 100 total selections (fail should also ensure)
		Assert.assertEquals(100, loc1 + loc2 + loc3);
		// Ensure each target was selected more than once
		Assert.assertTrue(loc1 > 10);
		Assert.assertTrue(loc2 > 10);		
		Assert.assertTrue(loc3>10);
	}