added a helper class for user input and ship placement