updated event function
lotsa changes to main
race_track_extraction has been altered