Ship.java code cleaned up.