generating random ships and limiting their size