map::grid refactor part 3.