public double calculateScore(int color){

		double score = 0;

		setPawnScore(color);

		for(Rank rank : board.ranks){
			for(Piece piece : rank.getRank()){
				if(piece.getColor() == color) 
					score += piece.getScore();
			}
		}

		return score;
	};