public boolean isInBounds(int col, int row) {
        if (row < 0 || row >= rows) {
            return false;
        }
        if (col < 0 || col >= cols) {
            return false;
        }
        return true;
    }