State transition of puzzle pieces