Text this: The development of algorithms for safe control of an autonomous ship