def check_col(grid,row,col):
    """Returns true if the column of the current cell is in win condition.

    Counts the occurences of the cell's player's marker and if it is equal
    to the size of the grid, the player has won.

    Args:
        grid: the tic tac toe game field
        row: the row of the cell to check
        col: the column of the cell to check

    Returns:
        True if a win condition is met
    """

    current_player = grid[row][col]
    size = len(grid)
    count = 0

    # go through all fields in the column manually and increase count if they're
    # occupied by the same player as the chosen field
    for i in range(size):
        count += grid[i][col] == current_player

    return count == size