private void addNeighbour(int x, int y, Cell cell) {
        if (x >= 0 && x < maxCols && y >= 0 && y < maxRows) {
            LogicCell c = new LogicCell(x, y);
            if (!nextStep.containsKey(c)) {
                c.neigbour = 1;
                nextStep.put(c, c);
            } else {
                nextStep.get(c).neigbour++;
            }
        }
    }