Getting started on adding tile elements and units to tiles.
Also added a diagram for the state machine governing the main loop.
Will implement it when I get the chance.