def match_monster(board, pattern, x, y):
    """ Check if the given coordinates match the monster pattern """
    for py, row in enumerate(pattern):
        if py + y >= len(board):
            return False
        for px, c in enumerate(row):
            if px + x >= len(board[0]):
                return False
            if c == "#":
                if board[y + py][x + px] != "#":
                    return False
    return True