fixed functionality of vertical? and horizontal? methods in Ship class