void set(int x, int y, Cell cell) { if (!_inBounds(x, y)) { return; } _cleanupOrphan(x, y); _cells[y * width + x] = cell; }