Addition of the getChild class function to the State class

The function that generates the child states is now implemented!