<commented out> while loop to look for best sol