def get_player_material(board):
    """Counts the number of materials on the current board for each player (A and B).

    Args:
        board (pgn board): Current board

    Returns:
        [int]: materialPlayerA
        [int]: materialPlayerB
    """
    # clear board to read out information
    information = str(board).replace("\n", " ")

    # get black and white material
    materialPlayer_B = information.count('r') + information.count('n') + information.count('b') + information.count('q') + information.count('k') + information.count('p')
    materialPlayer_W = information.count('R') + information.count('N') + information.count('B') + information.count('Q') + information.count('K') + information.count('P')
    
    # return materials for each player
    return materialPlayer_W, materialPlayer_B