cleaned up RHcode and added possability to handle hearistics to state.cs. HeuristicFunction not implemented