allSunk(){
		for(let i = 0; i < this.ships.length; i++){
			if(this.ships[i].isSunk() === false)
				return false;
		}
		return true;
	}
/* We want to know if all the ships are sunk to finish the game. Iterate
	 * through our ships array and check wether or not the ship is sunk. */
We want to know if all the ships are sunk to finish the game. Iterate
through our ships array and check wether or not the ship is sunk.
We want to know if all the ships are sunk to finish the game . Iterate through our ships array and check wether or not the ship is sunk .
allSunk(){
		for(let i = 0; i < this.ships.length; i++){
			if(this.ships[i].isSunk() === false)
				return false;
		}
		return true;
	}
allSunk ( ) { for ( let i = 0 ; i < this . ships . length ; i ++ ) { if ( this . ships [ i ] . isSunk ( ) === false ) return false ; } return true ; }
We want to know if all the ships are sunk to finish the game.
We want to know if all the ships are sunk to finish the game .