changed nbr_ships to global for access reasons.