public String dump() {
        String dump = "";
        for (int i = 0; i < grid.length; i++) {
            for (int j = 0; j < grid[0].length; j++) {
                dump += grid[i][j] ? 'O' : '.';
            }
            dump += "\n";
        }
        return dump;
    }