def is_locatable(self, index, gate_width):
    hold = [(index + i) for i in range(gate_width)]
    for p in hold:
        if (p in self.__gate_placed):
            return False
    return True
def is_locatable(self, index, gate_width):
    hold = [(index + i) for i in range(gate_width)]
    for p in hold:
        if (p in self.__gate_placed):
            return False
    return True