'A private helper function that simply returns a list of positions neighboring
the given (x,y) position. Basically it handles edges and corners.'

def _neighbors(self, position):

    return GameState.__NEIGHBORS_CACHE[self.size][position]
