Fixed a bug in Ship.java