Uses state object.

State defines the properties of units and cars.
Removed unused code.
Added a file.