def getNewBlock(self):
    pos = random.randint(0, (self.gridWidth - 1))
    while (self.grid[pos][0] is not None):
        pos = random.randint(0, (self.gridWidth - 1))
    col = random.randint(0, (self.numTypes - 1))
    self.grid[pos][0] = col
def getNewBlock(self):
    pos = random.randint(0, (self.gridWidth - 1))
    while (self.grid[pos][0] is not None):
        pos = random.randint(0, (self.gridWidth - 1))
    col = random.randint(0, (self.numTypes - 1))
    self.grid[pos][0] = col