Apply modifications in checkGuess() method because of Ship class.