public void generateLabyrinth(long seed) {
        Random random = new Random(seed);
        for (int i = 0; i < grid.length; i++) {
            for (int j = 0; j < grid[0].length; j++) {
                int n = random.nextInt(100);
                if (n < 25) {
                    grid[i][j].setWalkable(false);
                }
            }
        }
    }