fixed solving
Writing to file every 5 GetPredict()