greedySolver problem corrected, only print statement put until now