Restructure bg map storage. Completed BG_GetTile function.