Racing Games

i have done time atttack racer tutorial by unreal engine i need it to work with ai if ai finish the race first it should show the name of the ai that wins and finish the game