the change of the function getting magic cube's state