Changed FiniteStates.find() so that it returns a state that equals (==) the state passed as a parameter