code: def _can_cell_be_merged(self, x, y):
          
          value = self.grid[y][x]
          if y > 0 and self.grid[y - 1][x] == value:  # Cell above
              return True
          if y < self.COUNT_Y - 1 and self.grid[y + 1][x] == value:  # Cell below
              return True
          if x > 0 and self.grid[y][x - 1] == value:  # Left
              return True
          if x < self.COUNT_X - 1 and self.grid[y][x + 1] == value:  # Right
              return True
          return False
docs: Checks if a cell can be merged, when the