Added iTutorialState.
Changed some placement of codes.