input: Write a python function to check for victory in a Connect Four game.
  assert game.check_victory(1, 2, 3) == False
  assert game.check_victory(1, 3, 4) == True
  assert game.check_victory(2, 1, 1) == False
output: def check_victory(board, row, col, player):
      # Check horizontal
      count = 0
      for c in range(max(0, col-3), min(len(board[0]), col+4)):
          if board[row][c] == player:
              count += 1
              if count == 4:
                  return True
          else:
              count = 0
  
      # Check vertical
      count = 0
      for r in range(max(0, row-3), min(len(board), row+4)):
          if board[r][col] == player:
              count += 1
              if count == 4:
                  return True
          else:
              count = 0
  
      # Check diagonal /
      count = 0
      for i in range(-3, 4):
          r = row + i
          c = col + i
          if 0 <= r < len(board) and 0 <= c < len(board[0]):
              if board[r][c] == player:
                  count += 1
                  if count == 4:
                      return True
              else:
                  count = 0
  
      # Check diagonal \
      count = 0
      for i in range(-3, 4):
          r = row + i
          c = col - i
          if 0 <= r < len(board) and 0 <= c < len(board[0]):
              if board[r][c] == player:
                  count += 1
                  if count == 4:
                      return True
              else:
                  count = 0
  
      return False