Bug fixing

fixed bug with selecting race winner