def add_to_visited_places(x_curr: int, y_curr: int, visited_places: dict) -> dict:
    """
    Visited placs[(x,y)] contains the number of visits 
    that the cell (x,y). This updates the count to the
    current position (x_curr, y_curr)
    
    Args:
        x_curr: x coordinate of current position
        y_curr: y coordinate of current position
        visited_place: dict defined above
        
    Returns:
        visited_place: updated dict
    """
    
    if (x_curr, y_curr) not in visited_places:
        visited_places[(x_curr, y_curr)] = 1
    else:
        visited_places[(x_curr, y_curr)] += 1
    return visited_places