enhance dprint function.
Add test case.
update grids.py.
Split update into on_acquire_succeed and on_acquire_fail.
Use the sync methods to update world.