Implemented a version of walk in cursor.lua.