fixed issue with keeping track of ships all being sunk
shortened funcion