refactoring ship class out of userinput