Added minutes
moved free agent section inside single period_id loop