Defining Problem As A State Space Graph