fillPosition(initCoord, finalCoord){
		let initLetter = initCoord.slice(0, 1);
		let initNum = initCoord.slice(1, 2);
		let finalLetter = finalCoord.slice(0, 1);
		let finalNum = finalCoord.slice(1, 2);
		let direction = this._checkValidShipSize(initLetter, initNum, finalLetter, finalNum);

		if(direction === "Horizontal"){
			for(let i = 0; i < this.size; i++){
				this.position.push(initLetter + (Number(initNum) + i));
			}
		}else if(direction === "Vertical"){
			for(let i = 0; i < this.size; i++){
				let code = initLetter.charCodeAt(0);
				code += i;
				let letter = String.fromCharCode(code);
				this.position.push(letter + initNum);
			}
		}else{
			return false;
		}

		return this.position;
	}
/* Before we fill the ship's positions we validate the coordinates provided
	 * by the user. Once these are validated we fill the position array looping
	 * through the ship's size. */
Before we fill the ship's positions we validate the coordinates provided
by the user. Once these are validated we fill the position array looping
through the ship's size.
Before we fill the ship ' s positions we validate the coordinates provided by the user . Once these are validated we fill the position array looping through the ship ' s size .
fillPosition(initCoord, finalCoord){
		let initLetter = initCoord.slice(0, 1);
		let initNum = initCoord.slice(1, 2);
		let finalLetter = finalCoord.slice(0, 1);
		let finalNum = finalCoord.slice(1, 2);
		let direction = this._checkValidShipSize(initLetter, initNum, finalLetter, finalNum);
		if(direction === "Horizontal"){
			for(let i = 0; i < this.size; i++){
				this.position.push(initLetter + (Number(initNum) + i));
			}
		}else if(direction === "Vertical"){
			for(let i = 0; i < this.size; i++){
				let code = initLetter.charCodeAt(0);
				code += i;
				let letter = String.fromCharCode(code);
				this.position.push(letter + initNum);
			}
		}else{
			return false;
		}
		return this.position;
	}
fillPosition ( initCoord , finalCoord ) { let initLetter = initCoord . slice ( 0 , 1 ) ; let initNum = initCoord . slice ( 1 , 2 ) ; let finalLetter = finalCoord . slice ( 0 , 1 ) ; let finalNum = finalCoord . slice ( 1 , 2 ) ; let direction = this . _checkValidShipSize ( initLetter , initNum , finalLetter , finalNum ) ; if ( direction === "Horizontal" ) { for ( let i = 0 ; i < this . size ; i ++ ) { this . position . push ( initLetter + ( Number ( initNum ) + i ) ) ; } } else if ( direction === "Vertical" ) { for ( let i = 0 ; i < this . size ; i ++ ) { let code = initLetter . charCodeAt ( 0 ) ; code += i ; let letter = String . fromCharCode ( code ) ; this . position . push ( letter + initNum ) ; } } else { return false ; } return this . position ; }
Before we fill the ship's positions we validate the coordinates provided
 by the user.
Before we fill the ship ' s positions we validate the coordinates provided by the user .