@Test
	public void selectATargetLocation()
	{
		// Will go In room
		ComputerPlayer player = new ComputerPlayer();
		player.setLastVisited('Z');
		Board board = game.getBoard();
		board.calcTargets(4, 5, 2);
		int loc_4_3 = 0;
		
		int total = 120;
		for(int i = 0; i < total; i++)
		{
			BoardCell selected = player.pickLocation(board.getTargets());
			if (selected == board.getCellAt(board.calcIndex(4, 3)))
				loc_4_3++;
		}
		
		Assert.assertTrue(loc_4_3 == total);
		
		// Random one
		player = new ComputerPlayer();
		board = game.getBoard();
		board.calcTargets(0, 4, 2);
		int loc_0_6 = 0;
		int loc_1_5 = 0;

		total = 120;
		for(int i = 0; i < total; i++)
		{
			BoardCell selected = player.pickLocation(board.getTargets());
			if (selected == board.getCellAt(board.calcIndex(0, 6)))
				loc_0_6++;
			else if (selected == board.getCellAt(board.calcIndex(1, 5)))
				loc_1_5++;
			else 
				System.out.println(selected.getRow() + " " +selected.getColumn());
		}
		int temp = loc_0_6+loc_1_5;
		Assert.assertEquals(total, loc_0_6+loc_1_5);
		
		Assert.assertTrue(loc_0_6 > 30);
		Assert.assertTrue(loc_1_5 > 30);
		
		// Equal chance to go in room
		player = new ComputerPlayer();
		player.setLastVisited('C');
		board = game.getBoard();
		board.calcTargets(4,4,1);
		
		int loc_4_5 = 0;
		loc_4_3 = 0;
		int loc_5_4 = 0;
		
		total = 120;
		for(int i = 0; i < total; i++)
		{
			BoardCell selected = player.pickLocation(board.getTargets());
			if (selected == board.getCellAt(board.calcIndex(4, 5)))
				loc_4_5++;
			else if (selected == board.getCellAt(board.calcIndex(4, 3)))
				loc_4_3++;
			else if (selected == board.getCellAt(board.calcIndex(5, 4)))
				loc_5_4++;
		}
		
		Assert.assertEquals(total, loc_4_5+loc_4_3+loc_5_4);
		
		Assert.assertTrue(loc_4_5 > 15);
		Assert.assertTrue(loc_4_3 > 15);
		Assert.assertTrue(loc_5_4 > 15);

		
		
	}