battleship using d3 and angularjs