As the engine roared, a ship was racing over the water, stirring white waves and a flag fluttering in the stern.