change bool** to vector<vector<int>> in Grid