Configured the favourites loop

Included a condition to test whether there are any favourite horses.