Updating 8puzzle