when potatoes are cut, especially into smaller flakes like your would for hash browns a lot of the starch begins to oxides and will cause the potatoes to turn gray. that starch is turning into sugar, mixing with the moisture in the potatoes which also causes it to become gummy.