adding x or y to gridVals according to turn