updated hill climbing optimiser seems to be working properly