Fixed issue where if more than 2 horses tied the output was correct