Implemented hill climbing