struct tile to tile_t, huge commit
struct unit to unit_t, huge commit