Initialized the start state with correct f,g,h values