Playing battleships on the web