def getRight(self):
    for y in range((self.gridHeight - 2), (- 1), (- 1)):
        for x in range((self.gridWidth - 2), (- 1), (- 1)):
            if ((self.grid[x][y] is not None) and (self.grid[(x + 1)][y] is None) and (self.grid[x][(y + 1)] is None)):
                self.grid[(x + 1)][y] = self.grid[x][y]
                self.grid[x][y] = None
def getRight(self):
    for y in range((self.gridHeight - 2), (- 1), (- 1)):
        for x in range((self.gridWidth - 2), (- 1), (- 1)):
            if ((self.grid[x][y] is not None) and (self.grid[(x + 1)][y] is None) and (self.grid[x][(y + 1)] is None)):
                self.grid[(x + 1)][y] = self.grid[x][y]
                self.grid[x][y] = None