def diagonal_win(board, who):
    """
    returns true if either diagonal contains a winner
    """
    if board[0] == who and board[4] == who and board[8] == who:
        return True
    if board[2] == who and board[4] == who and board[6] == who:
        return True

    return False