greedySolver updated but not working