You need to drop what you’re doing and go play with this for a while: http://wheelsofsteel.net (bonus features available in safari or chrome)
Rather than just leave us to pick over his code, Scott Schill documented his production here. It’s always interesting for me to go through and read about how others thought through their code.