def isVisibleFrom(self, ghostPos, pacPos, pacDirection):
    (row, col) = [int(x) for x in pacPos]
    return (ghostPos in self.visibility[row][col][pacDirection])
def isVisibleFrom(self, ghostPos, pacPos, pacDirection):
    (row, col) = [int(x) for x in pacPos]
    return (ghostPos in self.visibility[row][col][pacDirection])