their ship 's captain , filin , was at the docks seeing to the refitting of his battered ship , and he knew of the remote castle of la mota and gave them directions , as far as he could , as to how to find it .