def check_win(board, player1, player2):
    """
	returns status of current board: 1-> won, 2-> draw, 0-> game undecided
	if game won, return value is [1,who_won]
	"""
    returned_val = ['', '']
    if board[0] == board[1] == board[2] and board[0] in [player1, player2]:
        returned_val = [1, board[0]]
    elif board[3] == board[4] == board[5] and board[3] in [player1, player2]:
        returned_val = [1, board[3]]
    elif board[6] == board[7] == board[8] and board[6] in [player1, player2]:
        returned_val = [1, board[6]]
    elif board[0] == board[3] == board[6] and board[0] in [player1, player2]:
        returned_val = [1, board[0]]
    elif board[1] == board[4] == board[7] and board[1] in [player1, player2]:
        returned_val = [1, board[1]]
    elif board[2] == board[5] == board[8] and board[2] in [player1, player2]:
        returned_val = [1, board[2]]
    elif board[0] == board[4] == board[8] and board[0] in [player1, player2]:
        returned_val = [1, board[0]]
    elif board[2] == board[4] == board[6] and board[2] in [player1, player2]:
        returned_val = [1, board[2]]
    elif '-' in board:
        returned_val = [0, board[0]]
    else:
        returned_val = [2, board[0]]
    return returned_val
