Race.java - fully commented