Refactor solution to 'Grid Walking'.