there were two sets of stairs rising to the dragondeck , one on either side of the foremast , and the area of the forecastle stretching from the foot of these and halfway to the mainmast was by custom allocated to the aviators , while the foremast jacks ruled the remainder of the space up to the mainmast .