refactored races and race checker