Cleaned up the routing state machine.  Also changed the naming from mode
to state.
Fixed the way a tile's offscreen position is set. It now gets set on add
to a group.
Added state machine logic to regular tiles.  Also some cleanup.
Further cleanup of the state machine logic.