public int getNumberOfUnitOnBoard(String name, int color){
	
		int count = 0;
		
		for(Rank rank : ranks){
			for(Piece piece : rank.getRank()){
				if(piece.getName() == name && piece.getColor() == color)
					count++;
			}
		}
		
		return count;
	};