added init_state, goal_state, and printf checking