BattleShip in NodeJS