added a function called grid_tst that will determine if the values in each grid are accecptable or not.  The output is a 2d array back to MCMC that will mark which pixels need to have a new x_co value generated.