def METHOD_NAME(self, x, y):
    neighbours = []
    if x > 0:
        neighbours.append((x - 1, y, self.LEFT))
    if x < self.map.w - 1:
        neighbours.append((x + 1, y, self.RIGHT))
    if y > 0:
        neighbours.append((x, y - 1, self.UP))
    if y < self.map.h - 1:
        neighbours.append((x, y + 1, self.DOWN))
    return neighbours