Addition of state logic. This simplifies how the KalTileView is drawn.