Getting only the time to found a solution and the json file writer first part