A battleship game with AngularJS