private int boardValue(Board board) {
  
		//Take the next checker.
		Checker curChecker = board.pop();
    
		//Exception case: there is no board!
		if (curChecker == null)
			return 0;
    
		//Every piece has an initial value of 2 points.
		int value = 2;
    
		//Having a king is worth another 3 points.
		if (curChecker.getType() == "King")
			value += 3;
    
		//Pieces on the sides have a slight advantage, they cannot be jumped, lets give them another point.
		//if (curChecker.getX() == 0 || curChecker.getX() == Board.SIZE)
			//value++;
    
		//If the piece we've examined up until now is not hours lets negate since it is our opponent's.
		if (!isMyColor(curChecker))
			value = -value;
    
		//Sum up our value and add the checker to our board.
		value += boardValue(board);
		board.push(curChecker);
		
		return value;
	}