boolean terminate(){
  return (state == null) || state.terminate();
}

boolean terminate ( ) { return ( state == null ) || state . terminate ( ) ; }
return true if the current state can be terminated .
