def max_x_y(board):
    """Finds the boundaries of the level"""
    x_highest = 0
    y_highest = 0

    for obj in board:
        # make sure obj is a wall
        if obj[0] == "#":
            # if obj x is higher than current x highest
            if x_highest < obj[1]:
                x_highest = obj[1]
            # if obj y is higher than current y highest
            if y_highest < obj[2]:
                y_highest = obj[2]

    return x_highest + 1, y_highest + 1