Agreement reached to reopen Kentucky Kingdom