Made separate cost evaluation function