Grounded how? Anyway, as I said, you have connected 9V signals directly to the Due pins. That can permanently damage the Due I/O pins...
What I see in the diagram, is a ground symbol extending from each board, with a connection point. There is nothing in the diagram itself that suggests how or if those are interconnected.