Update 2d grid