First crack at the gridwalk problem.