Rivers work better, added the start of an interface in the main, a parser for race template files, and a thread for ticking ai.