Maximum Number of Moves in a Grid | dStruct