Defined some of the functions in the Ship class