Battleship Game entirely with Javascript