def word_to_tile_position(move, tiles):
    """Converts word from the move generator to total tiles on board

    Args:
        move (list): List of moves to be made
        tiles (list): List of all currently placed out tiles on board

    Returns:
        List: Updated tile positions
    """

    (x, y, horizontal, word, _) = move

    tile_positions = []

    for letter in word:
        skip_letter = False

        for (_x, _y, _, _) in tiles:
            # If brick position is occupied
            if (_x, _y) == (x, y):
                skip_letter = True

        if not skip_letter:
            tile_positions.append(
                [x, y, letter.upper(), not letter.islower()]
            )

        # Iterate position of tiles
        if horizontal:
            x += 1
        else:
            y += 1

    return tile_positions