The location of median paths on grid graphs