Added a unit directory to the TileMap class which stores the unit at each tile.