As sailing ships evolved , the aftercastle gave way to the quarterdeck , whose span ran all the way to the main mast .
As sailing ships ran , the aftercastle gave way to the quarterdeck , whose span evolved all the way to the main mast .