Battleship redux in AngularJS