Change d_attrmode_sptiles_ships to 2D array and cleanup