How to Win at Horseracing